WordPress action hook
skyword_post_publish
Fired by 2 WordPress plugins, running on 540+ sites between them.
How to use skyword_post_publish
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( 'skyword_post_publish', function( $postId ) {
// Your code runs here.
}, 10, 1 );Argument names come from Skyword Publishing API's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire skyword_post_publish
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Skyword Publishing API500+ installs
do_action( 'skyword_post_publish', $postId )php/routes/class-skyword-posts.php:477 -
Skyword XMLRPC publishing40+ installs
do_action( 'skyword_post_publish', $post_id )php/class-skyword-publish.php:535
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.