Action
uncanny-automator-pro
automator_pro_loaded
Fires when Automator Pro has finished loading its core functionalities and is ready for use.
add_action( 'automator_pro_loaded', $callback, 10, 1 );
Description
Fires after Uncanny Automator Pro's core functionality, including all integrations, has been loaded and registered. Developers can use this hook to perform actions that depend on Automator Pro being fully initialized, such as registering custom triggers or actions, or modifying existing Automator Pro settings.
Usage
add_action( 'automator_pro_loaded', 'your_function_name', 10, 1 );
Examples
// Example of how to hook into the 'automator_pro_loaded' action.
// This hook fires after Uncanny Automator Pro has finished its initial loading.
// It can be useful for performing custom actions related to Uncanny Automator Pro's features,
// such as registering custom triggers or actions, or modifying existing ones.
add_action( 'automator_pro_loaded', 'my_custom_automator_pro_actions', 10, 0 );
/**
* My custom function to perform actions after Uncanny Automator Pro is loaded.
*
* @since 1.0.0
*/
function my_custom_automator_pro_actions() {
// This is a hypothetical example. In a real scenario, you might
// interact with Uncanny Automator Pro's classes or functions here.
// For instance, you could potentially register a new custom trigger
// or action if you were developing a custom integration.
// The exact methods to do this would depend on the Uncanny Automator Pro API.
// Example: Check if a specific Pro feature is available (this is illustrative).
if ( class_exists( 'Uncanny_Automator_ProUtilities' ) ) {
// Hypothetical check for a specific Pro module or functionality
if ( Uncanny_Automator_ProUtilities::is_pro_feature_enabled( 'my-custom-module' ) ) {
error_log( 'My custom Automator Pro module is enabled!' );
}
}
// Another hypothetical example: logging that the hook has fired.
error_log( 'Uncanny Automator Pro has successfully loaded. My custom actions are running.' );
}
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
uncanny-automator-pro/src/core/includes/internal-triggers-actions.php:130
uncanny-automator-pro/src/core/includes/internal-triggers-actions.php:150
public function register_via_addon_loader() {
$this->addon_loader->register( $this->all_integrations );
// Backward-compatible hooks.
do_action_deprecated( 'uncanny_automator_pro_loaded', array(), '3.9', 'automator_pro_loaded' );
do_action( 'automator_pro_loaded' );
}