restrict_manage_sites WordPress Action Hook

The restrict_manage_sites hook allows you to restrict which sites are shown in the WordPress admin area. This can be useful if you only want to show certain sites to certain users.

do_action( 'restrict_manage_sites', string $which ) #

Fires before the Filter button on the MS sites list table.


Parameters

$which

(string)The location of the extra table nav markup: 'top' or 'bottom'.


Top ↑

Source

File: wp-admin/includes/class-wp-ms-sites-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.