black-studio-tinymce-widget-script

Enqueue script for WP Page Widget plugin.

Description

apply_filters( 'black-studio-tinymce-widget-script', (string) $black_studio_tinymce_widget ); 

Parameters (1)

0. $black_studio_tinymce_widget (string) => 'black-studio-tinymce-widget'
The black studio tinymce widget.

Usage

To run the hook, copy the example below.
  1. $black_studio_tinymce_widget = apply_filters( 'black-studio-tinymce-widget-script', $black_studio_tinymce_widget ); 
  2.  
  3. if ( !empty( $black_studio_tinymce_widget ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the black-studio-tinymce-widget-script callback 
  2. function filter_black_studio_tinymce_widget_script( $black_studio_tinymce_widget ) { 
  3. // make filter magic happen here... 
  4. return $black_studio_tinymce_widget
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'black-studio-tinymce-widget-script', 'filter_black_studio_tinymce_widget_script', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'black-studio-tinymce-widget-script', 'filter_black_studio_tinymce_widget_script', 10, 1 ); 

Defined (3)

The filter is defined in the following location(s).

/includes/class-compatibility-plugins.php  
  1. $main_script = apply_filters( 'black-studio-tinymce-widget-script', 'black-studio-tinymce-widget' ); 
/includes/class-admin.php  
  1. $script = apply_filters( 'black-studio-tinymce-widget-script', 'black-studio-tinymce-widget' ); 
  1. wp_localize_script( apply_filters( 'black-studio-tinymce-widget-script', 'black-studio-tinymce-widget' ), 'bstw_data', $data );