site_allowed_themes

site_allowed_themes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('site_allowed_themes') is found 2 times:

  • /wp-includes/class-wp-theme.php line 1714
    			 *
    			 * @param string[] $allowed_themes An array of theme stylesheet names.
    			 * @param int      $blog_id        ID of the site. Defaults to current site.
    			 */
    			return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id );
    		}
    
    		$current = get_current_blog_id() == $blog_id;
    
    		if ( $current ) {
    			$allowed_themes[ $blog_id ] = get_option( 'allowedthemes' );
    
  • /wp-includes/class-wp-theme.php line 1767
    			}
    		}
    
    		/** This filter is documented in wp-includes/class-wp-theme.php */
    		return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id );
    	}
    
    	/**
    	 * Returns the folder names of the block template directories.
    	 *
    	 * @since 6.4.0