jetpack_do_subscription_form

The Jetpack by WordPress.com jetpack do subscription form function.

Description

jetpack_do_subscription_form( $instance ); 

Parameters (1)

0. $instance
The instance.

Usage

  1. if ( !function_exists( 'jetpack_do_subscription_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/subscriptions.php'; 
  3.  
  4. // The instance. 
  5. $instance = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_do_subscription_form($instance); 
  9.  

Defined (1)

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

/modules/subscriptions.php  
  1. function jetpack_do_subscription_form( $instance ) { 
  2. $instance['show_subscribers_total'] = empty( $instance['show_subscribers_total'] ) ? false : true; 
  3. $instance = shortcode_atts( Jetpack_Subscriptions_Widget::defaults(), $instance, 'jetpack_subscription_form' ); 
  4. $args = array( 
  5. 'before_widget' => sprintf( '<div class="%s">', 'jetpack_subscription_widget' ),  
  6. ); 
  7. ob_start(); 
  8. the_widget( 'Jetpack_Subscriptions_Widget', $instance, $args ); 
  9. $output = ob_get_clean(); 
  10. return $output;