inc2734 / wp-adsense
Installs: 4 851
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-04 20:59:45 UTC
README
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;
}
);