Filter
rpress_settings_sections
On this page
Filters the complete array of settings sections for all tabs.
Runs last in rpress_get_registered_settings_sections, after each per-tab section filter has been applied. The array is keyed by tab slug, and each value is a section slug => label array. Use it to add or remove sections across several tabs at once. The result is cached in a static variable for the rest of the request.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$sections | array | Array of tab slug => (section slug => section label). |
Return value#
array. The modified sections array.
Example#
function my_remove_misc_terms_section( $sections ) {
unset( $sections['misc']['site_terms'] );
return $sections;
}
add_filter( 'rpress_settings_sections', 'my_remove_misc_terms_section' );
Source#
Applied in:
includes/admin/settings/register-settings.php(line 2304), inrpress_get_registered_settings_sections()
See also#
Was this page helpful?
