wpcom_newsletter_categories_location

wpcom_newsletter_categories_location

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.12.8

apply_filters('wpcom_newsletter_categories_location') is found 1 times:

  • /extensions/blocks/subscriptions/subscriptions.php line 281
     * @return array
     */
    function get_newsletter_categories() {
    	// opt out of rendering when we display newsletter catgeories in the subscribe modal
    	$should_render_newsletter_categories = apply_filters( 'wpcom_newsletter_categories_location', 'block' ) === 'block';
    	if ( ! $should_render_newsletter_categories ) {
    		return array();
    	}
    
    	$response = fetch_newsletter_categories();