Action uncanny-automator

automator_on_settings_page_metabox

Fires on the Automator settings page before a metabox is rendered.

add_action( 'automator_on_settings_page_metabox', $callback, 10, 1 );

Description

Fires when the Automator settings page is being rendered, specifically before any metaboxes are displayed. Developers can use this hook to add custom content, metaboxes, or modify the settings page layout. It executes within the core Automator settings rendering process.


Usage

add_action( 'automator_on_settings_page_metabox', 'your_function_name', 10, 1 );

Examples

add_action( 'automator_on_settings_page_metabox', 'my_custom_automator_settings_metabox', 10, 0 );

/**
 * Adds a custom metabox to the Automator plugin's settings page.
 * This example shows how to add a simple notice or information box.
 */
function my_custom_automator_settings_metabox() {
	?>
	<div class="notice notice-info is-dismissible">
		<p><?php esc_html_e( 'This is a custom message added to the Automator settings page via the automator_on_settings_page_metabox hook.', 'your-text-domain' ); ?></p>
	</div>
	<?php
}

Placement

This code should be placed in the functions.php file of your active theme, a custom plugin, or using a code snippets plugin.


Source Code

src/core/includes/automator-settings.php:181

?>
			</div>
		</div>
	</div>
	<?php
} elseif ( 'settings' === $active ) {

	do_action( 'automator_on_settings_page_metabox' );
	?>
	<div class="wrap"> <!-- WP container -->
		<div class="uo-settings">
			<div class="uo-settings-content">
				<?php
				do_action_deprecated( 'uap_before_automator_settings_form', array(), '3.0', 'automator_before_settings_form' );
				do_action( 'automator_before_settings_form' );


Scroll to Top