Jetpack_Subscriptions_Widget::defaults PHP Method

defaults() public static method

public static defaults ( )
    public static function defaults()
    {
        return array('title' => esc_html__('Subscribe to Blog via Email', 'jetpack'), 'subscribe_text' => esc_html__('Enter your email address to subscribe to this blog and receive notifications of new posts by email.', 'jetpack'), 'subscribe_placeholder' => esc_html__('Email Address', 'jetpack'), 'subscribe_button' => esc_html__('Subscribe', 'jetpack'), 'success_message' => esc_html__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.", 'jetpack'), 'show_subscribers_total' => true);
    }

Usage Example

Beispiel #1
0
function jetpack_do_subscription_form($args)
{
    $args['show_subscribers_total'] = empty($args['show_subscribers_total']) ? false : true;
    $args = shortcode_atts(Jetpack_Subscriptions_Widget::defaults(), $args, 'jetpack_subscription_form');
    ob_start();
    the_widget('Jetpack_Subscriptions_Widget', $args);
    $output = ob_get_clean();
    return $output;
}
All Usage Examples Of Jetpack_Subscriptions_Widget::defaults