Admin_Apple_News_List_Table::publish_status_filter_field PHP Метод

publish_status_filter_field() защищенный Метод

Display a dropdown to filter by publish state.
    protected function publish_status_filter_field()
    {
        // Add available statuses
        $publish_statuses = apply_filters('apple_news_publish_statuses', array('' => __('Show All Statuses', 'apple-news'), 'published' => __('Published', 'apple-news'), 'not_published' => __('Not Published', 'apple-news'), 'pending' => __('Pending', 'apple-news'), 'deleted' => __('Deleted', 'apple-news')));
        // Build the dropdown
        ?>
		<select name="apple_news_publish_status" id="apple_news_publish_status">
		<?php 
        foreach ($publish_statuses as $value => $label) {
            printf('<option value="%s" %s>%s</option>', esc_attr($value), selected($value, $this->get_publish_status_filter(), false), esc_html($label));
        }
        ?>
		</select>
		<?php 
    }