<viennaos/net>
Home
Wordpress
Wordpress hook for newly published post
Wordpress hook for newly published post
add_action( 'publish_post', 'my_function' );
function my_function() { // Your custom code here }