calypso_use_modernized_reading_settings

calypso_use_modernized_reading_settings

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.12.3

apply_filters('calypso_use_modernized_reading_settings') is found 2 times:

  • /modules/masterbar/admin-menu/class-admin-menu.php line 387
    			 * @module masterbar
    			 *
    			 * @param bool false Should the modernized Reading Settings be enabled? Default to false.
    			 */
    			apply_filters( 'calypso_use_modernized_reading_settings', false )
    			&& self::DEFAULT_VIEW === $this->get_preferred_view( 'options-reading.php' )
    		) {
    			$submenus_to_update['options-reading.php'] = 'https://wordpress.com/settings/reading/' . $this->domain;
    		}
    
    		if ( self::DEFAULT_VIEW === $this->get_preferred_view( 'options-discussion.php' ) ) {
    
  • /modules/masterbar/admin-menu/menu-mappings.php line 28
    );
    
    if (
    	/** This filter is documented in modules/masterbar/admin-menu/class-admin-menu.php */
    	apply_filters( 'calypso_use_modernized_reading_settings', false )
    ) {
    	$common_mappings['options-reading.php'] = 'https://wordpress.com/settings/reading/';
    }
    
    if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
    	// WPCOM Specific mappings.