WordPress action hook
smartcloud_static_publisher_resource_changed_v1
Defined by SmartCloud Static Publisher and fired by 5 plugins in total, running on 40+ sites between them.
How to use smartcloud_static_publisher_resource_changed_v1
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'smartcloud_static_publisher_resource_changed_v1', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );Argument names come from SmartCloud Flow's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
5 plugins that fire smartcloud_static_publisher_resource_changed_v1
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
SmartCloud AI-Kit10+ installs
do_action( 'smartcloud_static_publisher_resource_changed_v1', array( 'contractVersion' => 1, 'blogId' => $blog_id, 'postId' => $post_id, 'renderUrls' => array($this->publicPermalink($post)), 'deleteUrls' => array(), ) )admin/kb/knowledge-sync.php:1385 -
SmartCloud Flow10+ installs
do_action( 'smartcloud_static_publisher_resource_changed_v1', array( 'contractVersion' => 1, 'provider' => 'smartcloud-wpsuite-custom-translations', 'blogId' => (int) get_current_blog_id(), 'postId' => 0, 'postType' => '', 'renderUrls' => array($new_asset_url), 'deleteUrls' => array(), ) )smartcloud-wpsuite/custom-translations.php:321 -
SmartCloud Static Publisher10+ installs
do_action( 'smartcloud_static_publisher_resource_changed_v1', array( 'contractVersion' => 1, 'provider' => 'smartcloud-wpsuite-custom-translations', 'blogId' => (int) get_current_blog_id(), 'postId' => 0, 'postType' => '', 'renderUrls' => array($new_asset_url), 'deleteUrls' => array(), ) )smartcloud-wpsuite/custom-translations.php:321 -
Gatey10+ installs
do_action( 'smartcloud_static_publisher_resource_changed_v1', array( 'contractVersion' => 1, 'provider' => 'smartcloud-wpsuite-custom-translations', 'blogId' => (int) get_current_blog_id(), 'postId' => 0, 'postType' => '', 'renderUrls' => array($new_asset_url), 'deleteUrls' => array(), ) )smartcloud-wpsuite/custom-translations.php:321 -
SmartCloud Agent ComposerFewer than 10 installs
do_action( 'smartcloud_static_publisher_resource_changed_v1', array( 'contractVersion' => 1, 'provider' => 'smartcloud-wpsuite-custom-translations', 'blogId' => (int) get_current_blog_id(), 'postId' => 0, 'postType' => '', 'renderUrls' => array($new_asset_url), 'deleteUrls' => array(), ) )smartcloud-wpsuite/custom-translations.php:321
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.