Kirki_Helper::get_posts PHP Метод

get_posts() публичный статический Метод

Get an array of posts.
public static get_posts ( array $args ) : array
$args array Define arguments for the get_posts function.
Результат array
        public static function get_posts($args)
        {
            // Get the posts.
            $posts = get_posts($args);
            // Properly format the array.
            $items = array();
            foreach ($posts as $post) {
                $items[$post->ID] = $post->post_title;
            }
            return $items;
        }