ACF_Admin_Field_Groups::trashed_post
Fires when trashing a field group.
Method of the class: ACF_Admin_Field_Groups{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Admin_Field_Groups = new ACF_Admin_Field_Groups(); $ACF_Admin_Field_Groups->trashed_post( $post_id );
- $post_id(int) (required)
- The post ID.
Changelog
| Since 5.0.0 | Introduced. |
ACF_Admin_Field_Groups::trashed_post() ACF Admin Field Groups::trashed post code ACF 6.8.8
public function trashed_post( $post_id ) {
if ( get_post_type( $post_id ) === $this->post_type ) {
acf_trash_field_group( $post_id );
}
}