V{MOJO_WORDPRESS_DEBUG} || 0;
our $VERSION = '0.03';
has base_url => 'http://localhost/wp-json'; # Will become a Mojo::URL object
has meta_replacer => undef;
has post_pr
> "wp/v2/$type", \%query)->then(sub {
my $wp_res = shift->res;
my $post = _arr($wp_res->json)->[0];
return $post && $processor ? $c->$processor($post) : $post;
});
}
sub _helper_get_p
ather, @posts);
$gather = sub {
my $wp_res = shift->res;
for my $post (@{_arr($wp_res->json)}) {
push @posts, $processor ? $c->$processor($post) : $post;
}
# Done getting all