PHP Class WP_MS_Networks_Admin

Since: 1.3.0
Show file Open project: stuttter/wp-multi-network

Public Methods

Method Description
__construct ( ) Hook methods in
add_move_blog_link ( array $actions = [], integer $blog_id ) Add the Move action to Sites page on WP >= 3.1
admin_menu ( ) Add the My Networks page to the site-level dashboard
enqueue_scripts ( $page = '' ) Add JavaScript on networks admin pages only
network_admin_menu ( ) Add Networks menu and entries to the Network-level dashboard
network_admin_menu_separator ( ) Add a separator between the 'Networks' and 'Dashboard' menu items on the Network dashboard
network_admin_notices ( ) Action feedback
page_edit_network ( ) New network creation dashboard page
page_my_networks ( ) Output the my networks page
route_pages ( ) Network listing and editing functions are routed through this function
route_save_handlers ( ) Save any form submissions

Private Methods

Method Description
admin_url ( $args = [] ) : string Return the URL of the Networks page
check_nonce ( ) Check the nonce
handle_add_network ( ) Handle the request to add a new network
handle_delete_network ( ) Handle the request to delete a network
handle_delete_networks ( ) Handle the request to helete many networks
handle_move_site ( ) Handle the request to move a site
handle_reassign_sites ( ) Handle the request to reassign sites
handle_redirect ( array $args = [] ) Handle redirect after page submit
handle_update_network ( ) Handle the request to update a network
page_all_networks ( ) Network listing dashboard page
page_delete_network ( ) Output the delete network page
page_delete_networks ( ) Output the delete multiple networks page
page_move_site ( ) Dashboard screen for moving sites -- accessed from the "Sites" screen
set_feedback_strings ( ) Feedback strings

Method Details

__construct() public method

Hook methods in
Since: 1.3.0
public __construct ( )

admin_menu() public method

If the user is super admin on another Network, don't require elevated permissions on the current Site
public admin_menu ( )

enqueue_scripts() public method

Add JavaScript on networks admin pages only
Since: 2.0.0
public enqueue_scripts ( $page = '' )

network_admin_menu() public method

This method puts the cart before the horse, and could maybe live in the WP_MS_Networks_List_Table class also.
public network_admin_menu ( )

network_admin_menu_separator() public method

Add a separator between the 'Networks' and 'Dashboard' menu items on the Network dashboard
Since: 1.5.2

network_admin_notices() public method

Action feedback
Since: 1.3.0

page_edit_network() public method

New network creation dashboard page
Since: 2.0.0
public page_edit_network ( )

page_my_networks() public method

Output the my networks page
Since: 2.0.0
public page_my_networks ( )

route_pages() public method

Network listing and editing functions are routed through this function
Since: 2.0.0
public route_pages ( )

route_save_handlers() public method

Save any form submissions
Since: 2.0.0
public route_save_handlers ( )