PHP 클래스 WP_MS_Networks_Admin

부터: 1.3.0
파일 보기 프로젝트 열기: stuttter/wp-multi-network

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

Hook methods in
부터: 1.3.0
public __construct ( )

admin_menu() 공개 메소드

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

enqueue_scripts() 공개 메소드

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

network_admin_menu() 공개 메소드

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() 공개 메소드

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

network_admin_notices() 공개 메소드

Action feedback
부터: 1.3.0

page_edit_network() 공개 메소드

New network creation dashboard page
부터: 2.0.0
public page_edit_network ( )

page_my_networks() 공개 메소드

Output the my networks page
부터: 2.0.0
public page_my_networks ( )

route_pages() 공개 메소드

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

route_save_handlers() 공개 메소드

Save any form submissions
부터: 2.0.0
public route_save_handlers ( )