Filter hook 'can_edit_network'

in WP Core File wp-admin/includes/ms.php at line 838

View Source

can_edit_network

Filter Hook
Description
Filters whether this network can be edited from this page.

Hook Information

File Location wp-admin/includes/ms.php View on GitHub
Hook Type Filter
Line Number 838

Hook Parameters

Type Name Description
bool $result Whether the network can be edited from this page.
int $network_id The network ID to check.

Usage Examples

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

function my_custom_filter($result, $network_id) {
    // Your custom filtering logic here
    return $result;
}

Source Code Context

wp-admin/includes/ms.php:838 - How this hook is used in WordPress core
<?php
 833  	 * @since 3.1.0
 834  	 *
 835  	 * @param bool $result     Whether the network can be edited from this page.
 836  	 * @param int  $network_id The network ID to check.
 837  	 */
 838  	return apply_filters( 'can_edit_network', $result, $network_id );
 839  }
 840  
 841  /**
 842   * Prints thickbox image paths for Network Admin.
 843   *

PHP Documentation

<?php
/**
	 * Filters whether this network can be edited from this page.
	 *
	 * @since 3.1.0
	 *
	 * @param bool $result     Whether the network can be edited from this page.
	 * @param int  $network_id The network ID to check.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/ms.php
Related Hooks

Related hooks will be displayed here in future updates.