site_allowed_themes

site_allowed_themes

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

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('site_allowed_themes') is found 2 times:

  • /wp-includes/class-wp-theme.php line 1721
    1717
    1718
    1719
    1720
    1721
    1722
    1723
    1724
    1725
    1726
    1727
         *
         * @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 1774
    1770
    1771
    1772
    1773
    1774
    1775
    1776
    1777
    1778
    1779
    1780
            }
        }
     
        /** 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