jetpack_subscription_form

The Jetpack by WordPress.com jetpack subscription form shortcode.


Usage

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

Defined (1)

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

/modules/subscriptions.php  
  1. </p> 
  2. <?php 
  3.  
  4. add_shortcode( 'jetpack_subscription_form', 'jetpack_do_subscription_form' ); 
  5.  
  6. function jetpack_do_subscription_form( $instance ) { 
  7. $instance['show_subscribers_total'] = empty( $instance['show_subscribers_total'] ) ? false : true; 
  8. $instance = shortcode_atts( Jetpack_Subscriptions_Widget::defaults(), $instance, 'jetpack_subscription_form' ); 
  9. $args = array(