<self_shortcode>

The Jetpack by WordPress.com self shortcode shortcode.


Usage

  1. // assign value 
  2. $self_shortcode = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$self_shortcode]"); 
  1. // assign value 
  2. $self_shortcode = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$self_shortcode]"); 
  6. echo $result;  

Defined (2)

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

/modules/related-posts/jetpack-related-posts.php  
  1. /* @uses add_shortcode, get_the_ID 
  2. * @returns null 
  3. */ 
  4. public function action_frontend_init() { 
  5. // Add a shortcode handler that outputs nothing, this gets overridden later if we can display related content 
  6. add_shortcode( self::SHORTCODE, array( $this, 'get_target_html_unsupported' ) ); 
  7.  
  8. if ( ! $this->_enabled_for_request() ) 
  9. return; 
  10.  
  11. if ( isset( $_GET['relatedposts'] ) ) { 
  1. /* @return null 
  2. */ 
  3. protected function _setup_shortcode() { 
  4. add_filter( 'the_content', array( $this, 'test_for_shortcode' ), 0 ); 
  5.  
  6. add_shortcode( self::SHORTCODE, array( $this, 'get_target_html' ) ); 
  7.  
  8. protected function _allow_feature_toggle() { 
  9. if ( null === $this->_allow_feature_toggle ) { 
  10. /**