jetpack_do_subscription_form

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

Description

jetpack_do_subscription_form( $args ); 

Parameters (1)

0. $args
The args.

Usage

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

Defined (1)

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

/modules/subscriptions.php  
  1. function jetpack_do_subscription_form( $args ) { 
  2. $args['show_subscribers_total'] = empty( $args['show_subscribers_total'] ) ? false : true; 
  3. $args = shortcode_atts( Jetpack_Subscriptions_Widget::defaults(), $args, 'jetpack_subscription_form' ); 
  4. ob_start(); 
  5. the_widget( 'Jetpack_Subscriptions_Widget', $args ); 
  6. $output = ob_get_clean(); 
  7. return $output;