Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vivirenremoto/46b12faad756028c05f447c6fa1aa615 to your computer and use it in GitHub Desktop.
Save vivirenremoto/46b12faad756028c05f447c6fa1aa615 to your computer and use it in GitHub Desktop.
execute after post update
// añadir marca de agua en las imagenes pendientes al guardar un post
function post_after_update($post_id)
{
file_get_contents(site_url('/watermark.php'));
}
add_action('save_post', 'post_after_update');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment