inc2734/wp-like-me-box

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

Installs: 2 188

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:Shell

2.0.1 2020-09-04 07:30 UTC

This package is auto-updated.

Last update: 2020-12-04 08:22:12 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;
	}
);