Filter hook 'wpmu_active_signup'

in WP Core File wp-signup.php at line 940

View Source

wpmu_active_signup

Filter Hook
Description
Filters the type of site sign-up.

Hook Information

File Location wp-signup.php View on GitHub
Hook Type Filter
Line Number 940

Hook Parameters

Type Name Description
string $active_signup String that returns registration type. The value can be 'all', 'none', 'blog', or 'user'.

Usage Examples

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

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

Source Code Context

wp-signup.php:940 - How this hook is used in WordPress core
<?php
 935   * @since 3.0.0
 936   *
 937   * @param string $active_signup String that returns registration type. The value can be
 938   *                              'all', 'none', 'blog', or 'user'.
 939   */
 940  $active_signup = apply_filters( 'wpmu_active_signup', $active_signup );
 941  
 942  if ( current_user_can( 'manage_network' ) ) {
 943  	echo '<div class="mu_alert">';
 944  	_e( 'Greetings Network Administrator!' );
 945  	echo ' ';

PHP Documentation

<?php
/**
 * Filters the type of site sign-up.
 *
 * @since 3.0.0
 *
 * @param string $active_signup String that returns registration type. The value can be
 *                              'all', 'none', 'blog', or 'user'.
 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-signup.php
Related Hooks

Related hooks will be displayed here in future updates.