Required_Page::add_post_state( array $post_states, WP_Post $post )
Summary
No summary available.Parameters
- $post_states
-
(array) (Required)
- $post
-
(WP_Post) (Required)
Return
(array)
Source
File: src/BigCommerce/Pages/Required_Page.php
public function add_post_state( $post_states, $post ) { if ( intval( get_option( static::NAME, 0 ) ) === $post->ID ) { $label = $this->get_post_state_label(); if ( $label ) { $post_states[ static::NAME ] = $label; } } return $post_states; }