Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_media_item_args( $args ) {
- if ($args["delete"] && $_GET["action" == "delete-post"])
- {
- $current_post_id = !empty( $_GET['id'] ) ? (int) $_GET['id'] : 0;
- if ($current_post_id > 0)
- {
- //Do your thing here.
- }
- }
- return $args;
- }
- add_filter( 'get_media_item_args', 'get_media_item_args', 10, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement