wpmu_get_blog_allowedthemes

Deprecated functionality for getting themes allowed on a specific site.

Description

wpmu_get_blog_allowedthemes( (int) $blog_id = 0 ); 

Parameters (1)

0. $blog_id — Optional. (int)
The blog id.

Usage

  1. if ( !function_exists( 'wpmu_get_blog_allowedthemes' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/ms-deprecated.php'; 
  3.  
  4. // The blog id. 
  5. $blog_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpmu_get_blog_allowedthemes($blog_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/ms-deprecated.php  
  1. function wpmu_get_blog_allowedthemes( $blog_id = 0 ) { 
  2. _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' ); 
  3. return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) );