blog_subscription_form

The WordPress Core blog subscription form shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[blog_subscription_form]'); 
  1. // variable usage 
  2. $result = do_shortcode('[blog_subscription_form]'); 
  3. echo $result;  

Defined (1)

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

/modules/subscriptions.php  
  1. <?php 
  2.  
  3. add_shortcode( 'jetpack_subscription_form', 'jetpack_do_subscription_form' ); 
  4. add_shortcode( 'blog_subscription_form', 'jetpack_do_subscription_form' ); 
  5.  
  6. function jetpack_do_subscription_form( $instance ) { 
  7. if ( empty( $instance ) || ! is_array( $instance ) ) { 
  8. $instance = array();