inc2734/wp-like-me-box

A library for WordPress that added Facebook like me box for article.

5.0.1 2024-08-03 13:58 UTC

This package is auto-updated.

Last update: 2024-10-03 14:19:19 UTC


README

Build Status Latest Stable Version License

Install

$ composer require inc2734/wp-like-me-box

How to use

<?php
new Inc2734\WP_Like_Me_Box\Bootstrap();

Shortcode

[wp_like_me_box facebook_page_name="xxxxx"]

Filter hooks

inc2734_wp_like_me_box_thumbnail

/**
 * Customize thumbnail url
 *
 * @param $thumbnail
 * @return $thumbnail
 */
add_filter(
	'inc2734_wp_like_me_box_thumbnail',
	function( $thumbnail ) {
		return $thumbnail;
	}
);

inc2734_wp_like_me_box_facebook_page_name

/**
 * Customize facebook page name
 *
 * @param $facebook_page_name
 * @return $facebook_page_name
 */
add_filter(
	'inc2734_wp_like_me_box_facebook_page_name',
	function( $facebook_page_name ) {
		return $facebook_page_name;
	}
);