acf/trash_{$this->hook_name}

acf/trash_{$this->hook_name}

Hook Type: action

See hook in core

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

do_action('acf/trash_{$this->hook_name}') is found 2 times:

  • /includes/class-acf-internal-post-type.php line 635
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
         * @since 5.0.0
         *
         * @param array $post The ACF post array.
         */
        do_action( "acf/trash_{$this->hook_name}", $post );
     
        return true;
    }
     
    /**
     * Restores an ACF post from the trash.
  • /includes/post-types/class-acf-field-group.php line 273
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
         * @since 5.0.0
         *
         * @param array $post The ACF post array.
         */
        do_action( "acf/trash_{$this->hook_name}", $post );
     
        return true;
    }
     
    /**
     * Restores an ACF field group and related fields from the trash.