black-studio-tinymce-widget-style

Helper function to enqueue style.

Description

apply_filters( 'black-studio-tinymce-widget-style', (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-style', $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-style callback 
  2. function filter_black_studio_tinymce_widget_style( $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-style', 'filter_black_studio_tinymce_widget_style', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'black-studio-tinymce-widget-style', 'filter_black_studio_tinymce_widget_style', 10, 1 ); 

Defined (1)

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

/includes/class-admin.php  
  1. $style = apply_filters( 'black-studio-tinymce-widget-style', 'black-studio-tinymce-widget' );