inc2734/wp-adsense

1.0.0 2019-08-23 06:33 UTC

README

Build Status Latest Stable Version License

Install

$ composer require inc2734/wp-adsense

How to use

use Inc2734\WP_Adsense;

WP_Adsense\Helper::the_adsense_code( $code, $size );

Filter hooks

inc2734_wp_adsense_the_adsense_code

/**
 * Customize the adsense code
 *
 * @param string $code
 * @return string
 */
add_filter(
	'inc2734_wp_adsense_the_adsense_code',
	function( $code ) {
		return $code;
	}
);