Filter hook 'wp_using_themes'

in WP Core File wp-includes/load.php at line 1767

View Source

wp_using_themes

Filter Hook
Description
Filters whether the current request should use themes.

Hook Information

File Location wp-includes/load.php View on GitHub
Hook Type Filter
Line Number 1767

Hook Parameters

Type Name Description
bool $wp_using_themes Whether the current request should use themes.

Usage Examples

Basic Usage
<?php
// Hook into wp_using_themes
add_filter('wp_using_themes', 'my_custom_filter', 10, 1);

function my_custom_filter($wp_using_themes) {
    // Your custom filtering logic here
    return $wp_using_themes;
}

Source Code Context

wp-includes/load.php:1767 - How this hook is used in WordPress core
<?php
1762  	 *
1763  	 * @since 5.1.0
1764  	 *
1765  	 * @param bool $wp_using_themes Whether the current request should use themes.
1766  	 */
1767  	return apply_filters( 'wp_using_themes', defined( 'WP_USE_THEMES' ) && WP_USE_THEMES );
1768  }
1769  
1770  /**
1771   * Determines whether the current request is a WordPress cron request.
1772   *

PHP Documentation

<?php
/**
	 * Filters whether the current request should use themes.
	 *
	 * @since 5.1.0
	 *
	 * @param bool $wp_using_themes Whether the current request should use themes.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/load.php
Related Hooks

Related hooks will be displayed here in future updates.