jetpack_subscriptions_exclude_all_categories_except, array(

jetpack_subscriptions_exclude_all_categories_except, array(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_subscriptions_exclude_all_categories_except, array(') is found 1 times:

  • /modules/subscriptions.php line 320
    		 * @since 3.7.0
    		 *
    		 * @param array $args Array of category slugs or ID's.
    		 */
    		$only_these_categories = apply_filters( 'jetpack_subscriptions_exclude_all_categories_except', array() );
    
    		// Only emails posts from these categories.
    		if ( ! empty( $only_these_categories ) && ! in_category( $only_these_categories, $post->ID ) ) {
    			$should_email = false;
    		}