pre_kses

The WordPress Core pre kses hook.

Description

add_filter( 'pre_kses', (string) $jetpack_archiveorg_book_embed_to_shortcode ); 

Parameters (1)

0. $jetpack_archiveorg_book_embed_to_shortcode (string) => 'jetpack_archiveorg_book_embed_to_shortcode'
The jetpack archiveorg book embed to shortcode.

Usage

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

Defined (18)

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

/modules/shortcodes/archiveorg-book.php  
  1. add_filter( 'pre_kses', 'jetpack_archiveorg_book_embed_to_shortcode' ); 
/modules/shortcodes/archiveorg.php  
  1. add_filter( 'pre_kses', 'jetpack_archiveorg_embed_to_shortcode' ); 
/modules/shortcodes/class.filter-embedded-html-objects.php  
  1. add_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'filter' ), 11 ); 
  1. add_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 ); // See WPCom_Embed_Stats::init() 
/modules/shortcodes/dailymotion.php  
  1. add_filter( 'pre_kses', 'dailymotion_embed_to_shortcode' ); 
/modules/shortcodes/getty.php  
  1. add_filter( 'pre_kses', 'wpcom_shortcodereverse_getty' ); 
/modules/shortcodes/dailymotion.php  
  1. add_filter( 'pre_kses', 'dailymotion_channel_reversal' ); 
/modules/shortcodes/flickr.php  
  1. add_filter( 'pre_kses', 'flickr_embed_to_shortcode' ); 
/modules/shortcodes/dailymotion.php  
  1. add_filter( 'pre_kses', 'jetpack_dailymotion_embed_reversal' ); 
/modules/shortcodes/googleapps.php  
  1. add_filter( 'pre_kses', 'googleapps_embed_to_shortcode' ); 
/modules/shortcodes/googlemaps.php  
  1. add_filter( 'pre_kses', 'jetpack_googlemaps_embed_to_short_code' ); 
/modules/shortcodes/kickstarter.php  
  1. add_filter( 'pre_kses', 'jetpack_kickstarter_embed_to_shortcode' ); 
/modules/shortcodes/instagram.php  
  1. add_filter( 'pre_kses', 'jetpack_instagram_embed_reversal' ); 
/modules/shortcodes/mailchimp.php  
  1. add_filter( 'pre_kses', array( 
/modules/shortcodes/polldaddy.php  
  1. add_filter( 'pre_kses', array( $this, 'polldaddy_embed_to_shortcode' ) ); 
/modules/shortcodes/soundcloud.php  
  1. add_filter( 'pre_kses', 'jetpack_soundcloud_embed_reversal' ); 
/modules/shortcodes/vimeo.php  
  1. add_filter( 'pre_kses', 'vimeo_embed_to_shortcode' ); 
/modules/shortcodes/youtube.php  
  1. add_filter( 'pre_kses', 'youtube_embed_to_short_code' );