Filter
rpress_settings_section_sms_notification
On this page
Filters the list of sections for the SMS notification settings tab.
Runs when the settings sections are built. The default is an empty array; SMS integrations add their own sections here. No SMS tab is added by the core settings tabs, so a tab with the sms_notification slug must be added through rpress_settings_tabs.
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_sms_section( $sections ) {
$sections['main'] = __( 'SMS Gateway', 'my-plugin' );
return $sections;
}
add_filter( 'rpress_settings_section_sms_notification', 'my_add_sms_section' );
Notes#
The hook name uses section (singular).
Source#
Applied in:
includes/admin/settings/register-settings.php(line 2302), inrpress_get_registered_settings_sections()
See also#
Was this page helpful?
