Search by

inc2734 / wp-like-me-box

inc2734

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

Package info

github.com/inc2734/wp-like-me-box

pkg:composer/inc2734/wp-like-me-box

Statistics

Installs: 7 374

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 7

5.0.4 2026-12-04 07:20 UTC

This package is auto-updated.

Last update: 2026-12-04 07:24:51 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"]

The box links to the Facebook Page. If no page name is set after applying the page-name filter, the shortcode renders nothing.

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;
	}
);

inc2734_wp_like_me_box_stylesheet_url

Override the stylesheet URL when the Composer installation does not map to a public WordPress directory. The filter receives the detected URL (an empty string if unavailable) and the absolute path to the stylesheet.