ACF_Admin_Field_Groups::display_post_states
Adds the "disabled" post state for the admin table title.
Method of the class: ACF_Admin_Field_Groups{}
No Hooks.
Returns
Array.
Usage
$ACF_Admin_Field_Groups = new ACF_Admin_Field_Groups(); $ACF_Admin_Field_Groups->display_post_states( $post_states, $post );
- $post_states(array) (required)
- An array of post display states.
- $post(WP_Post) (required)
- The current post object.
Changelog
| Since 5.9.0 | Introduced. |
ACF_Admin_Field_Groups::display_post_states() ACF Admin Field Groups::display post states code ACF 6.0.4
public function display_post_states( $post_states, $post ) {
if ( $post->post_status === 'acf-disabled' ) {
$post_states['acf-disabled'] = $this->get_disabled_post_state();
}
return $post_states;
}