Filter
rpress_settings_sections_licenses
On this page
Filters the list of sections shown in the Licenses settings tab.
Runs when the settings sections are built. The default is an empty array, so the Licenses tab has no sub-navigation unless an extension adds sections. Extensions that register licence fields normally do so through rpress_registered_settings under the licenses tab.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$sections | array | Associative array of section slug => section label. Empty by default. |
Return value#
array. The section slug => label array.
Example#
function my_add_licenses_section( $sections ) {
$sections['my_plugin'] = __( 'My Plugin', 'my-plugin' );
return $sections;
}
add_filter( 'rpress_settings_sections_licenses', 'my_add_licenses_section' );
Source#
Applied in:
includes/admin/settings/register-settings.php(line 2293), inrpress_get_registered_settings_sections()
See also#
Was this page helpful?
