inc2734/wp-like-me-box

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

5.0.2 2024-11-05 13:12 UTC

This package is auto-updated.

Last update: 2024-11-05 13:15:15 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;
	}
);