acf/pre_delete_metadata

acf/pre_delete_metadata

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.2.2

apply_filters('acf/pre_delete_metadata') is found 1 times:

  • /includes/acf-meta-functions.php line 215
     * @return  bool
     */
    function acf_delete_metadata( $post_id = 0, $name = '', $hidden = false ) {
    	// Allow filter to short-circuit logic.
    	$pre = apply_filters( 'acf/pre_delete_metadata', null, $post_id, $name, $hidden );
    	if ( $pre !== null ) {
    		return $pre;
    	}
    
    	// Decode $post_id for $type and $id.
    	$decoded = acf_decode_post_id( $post_id );