pbs_enqueue_scripts

Enqueue a script or style alongside PBS. This is called only when the post is editable with PBS. When the page isn't editable with PBS, then this isn't used at all.

Parameters

None.

Example

When PBS loads, also enqueue my-script.js

add_action( 'pbs_enqueue_scripts, 'add_my_script' );

function add_my_script() {
	wp_enqueue_script( 'my-script' , plugins_url( 'js/my-script.js', __FILE__ ) );
}

Still need help? Contact Us Contact Us