Action
rpress_{$id}
On this page
Fires when a settings field of type hook is rendered.
The dynamic part is the setting id prefixed with rpress_. A setting registered with 'type' => 'hook' has no built-in output; the callback fires this action so a plugin can print its own markup in that position. The core Emails tab registers one such field with the id email_settings, which fires rpress_email_settings.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$args | array | The setting arguments, including id, name, desc and type. |
Example#
function my_render_email_settings( $args ) {
echo '<p>' . esc_html__( 'Custom email options go here.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_email_settings', 'my_render_email_settings' );
Notes#
Replace {$id} with the id of a setting whose type is hook.
Source#
Fired from:
includes/admin/settings/register-settings.php(line 3717), inrpress_hook_callback()
See also#
Was this page helpful?
