New answers tagged

1

If you're in the admin site you can use themes_api() $info = themes_api( 'theme_information', [ 'slug' => 'twentyten' ] ); echo esc_textarea( $info->sections['description'] ); but that's plain text, not HTML. The API request it generates is https://api.wordpress.org/themes/info/1.2/?action=theme_information&request%5Bslug%5D=twentyten&...


0

When doing "per_page" on the products/categories endpoint, the MAX you can use is 100. Anything more then that will cause the error Error: Invalid parameter(s): per_page [rest_invalid_param]


0

function custom_phrase($request_data) $request_data was missing. Fixed it :)


0

You’re using the wrong function. It’s register_rest_route() not register_rest_field().


Top 50 recent answers are included