You appear to be a bot. Output may be restricted
Description
Usage
Jetpack_Subscriptions::subscription_post_page_metabox();
Parameters
Returns
void
Source
File name: jetpack/modules/subscriptions.php
Lines:
1 to 34 of 34
function subscription_post_page_metabox() { if ( /** * Filter whether or not to show the per-post subscription option. * * @module subscriptions * * @since 3.7.0 * * @param bool true = show checkbox option on all new posts | false = hide the option. */ ! apply_filters( 'jetpack_allow_per_post_subscriptions', false ) ) { return; } if ( has_filter( 'jetpack_subscriptions_exclude_these_categories' ) || has_filter( 'jetpack_subscriptions_include_only_these_categories' ) ) { return; } global $post; $disable_subscribe_value = get_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', true ); // only show checkbox if post hasn't been published and is a 'post' post type. if ( get_post_status( $post->ID ) !== 'publish' && get_post_type( $post->ID ) == 'post' ) : // Nonce it wp_nonce_field( 'disable_subscribe', 'disable_subscribe_nonce' ); ?> <div class="misc-pub-section"> <label for="_jetpack_dont_email_post_to_subs"><?php _e( 'Jetpack Subscriptions:', 'jetpack' ); ?></label><br> <input type="checkbox" name="_jetpack_dont_email_post_to_subs" id="jetpack-per-post-subscribe" value="1" <?php checked( $disable_subscribe_value, 1, true ); ?> /> <?php _e( 'Don’t send this to subscribers', 'jetpack' ); ?> </div> <?php endif; }