inc2734 / wp-like-me-box
A library for WordPress that added Facebook like me box for article.
Installs: 6 589
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
Requires (Dev)
README
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;
}
);