• I’ve a custom post type named ‘banners’ and i want to perform some action after post is trashed and i’ve tried in many ways but all in vain. I’ve tried the following hooks. Any idea how i can implement it ? The control never comes to my function do_trash_function.

    add_action(‘trash_post’,’d0_trash_function’);
    add_action(‘delete_post’,’d0_trash_function’);
    add_action(‘trash_banners’,’d0_trash_function’);
    add_action(‘delete_banners’,’d0_trash_function’);
    add_action(‘wp_trash_post’,’d0_trash_function’);
    add_action(‘wp_delete_post’,’d0_trash_function’);
    add_action(‘wp_trash_banners’,’d0_trash_function’);
    add_action(‘wp_delete_banners’,’d0_trash_function’);

  • The topic ‘trash_post and delete_post not working’ is closed to new replies.