rebase from live enviornment
This commit is contained in:
22
wp/plugins/imagify/inc/functions/media.php
Normal file
22
wp/plugins/imagify/inc/functions/media.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
|
||||
|
||||
/**
|
||||
* Trigger a hook that should happen before a media is deleted.
|
||||
*
|
||||
* @since 1.9
|
||||
* @author Grégory Viguier
|
||||
*
|
||||
* @param ProcessInterface $process An optimization process.
|
||||
*/
|
||||
function imagify_trigger_delete_media_hook( $process ) {
|
||||
/**
|
||||
* Triggered bifore a media is deleted.
|
||||
*
|
||||
* @since 1.9
|
||||
* @author Grégory Viguier
|
||||
*
|
||||
* @param ProcessInterface $process An optimization process.
|
||||
*/
|
||||
do_action( 'imagify_delete_media', $process );
|
||||
}
|
||||
Reference in New Issue
Block a user