dsp_promote_posts_enabled

dsp_promote_posts_enabled

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.11.3.1

apply_filters('dsp_promote_posts_enabled') is found 1 times:

  • /modules/masterbar/admin-menu/class-wpcom-admin-menu.php line 348
    	 */
    	public function add_options_menu() {
    		parent::add_options_menu();
    
    		if ( apply_filters( 'dsp_promote_posts_enabled', false, get_current_user_id() ) ) {
    			add_submenu_page( 'tools.php', esc_attr__( 'Advertising', 'jetpack' ), __( 'Advertising', 'jetpack' ), 'manage_options', 'https://wordpress.com/advertising/' . $this->domain, null, 1 );
    		}
    		add_submenu_page( 'options-general.php', esc_attr__( 'Hosting Configuration', 'jetpack' ), __( 'Hosting Configuration', 'jetpack' ), 'manage_options', 'https://wordpress.com/hosting-config/' . $this->domain, null, 10 );
    	}
    
    	/**