Ability to change homepage on WordPress using API
It appears you can change some settings via the REST API, but it doesn’t look like the Home Page is one of them. At least, it doesn’t seem to appear in the REST API > Site Settings documentation.
It appears you can change some settings via the REST API, but it doesn’t look like the Home Page is one of them. At least, it doesn’t seem to appear in the REST API > Site Settings documentation.
How to get WP GraphQL data on React front-end using Axios?
WordPress REST API not working on localhost
How to set a custom URL for the iframe in the customize page
ACF has the ability to create a ‘Theme Options’ page which you can then use to conveniently centralise options for things like headers and footer etc.. ACF Options Page information As Jacob Peattie rightly points out, how you integrate this into Gatsby is outside of the scope of WPSE and may require custom development. However, … Read more
I think it would be prudent to create a new custom taxonomy now named podcast in order to categorize your episodes separate from other content. Whether using a custom podcast taxonomy or generic categorys, taxonomies do not support attached media or featured images out of the box. You’ll likely need to store a media attachment … Read more
Yes. WooCommerce has endpoints and you can access them with the standard WordPress REST API. /wp-json/wc/v3/products /wp-json/wc/v3/products/<id> Did a little search and found that they have documentation available here: https://woocommerce.github.io/woocommerce-rest-api-docs/
Post revisions have the original post as their parent, so you can get the post type by checking the post type of the revision’s parent: $revision = wp_get_post_revision( $id ); $post_type = get_post_type( $revision->post_parent );
To disable WP frontend and WP REST API output, create an empty theme, i.e. ‘My Empty Theme’ in /wp-content/themes/myemptytheme/, that contains 3 files: style.css index.php functions.php style.css may contain the theme name only: /* Theme Name: My Empty Theme */ index.php – leave it empty functions.php – include the following code to disable REST API … Read more
Try the following mod_rewrite directives instead at the top of your root .htaccess file (before the # BEGIN WordPress section): # Reject any user requests that are not prefixed “/wp-json” RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule !wp-json($|/) – [F] Requested URLs that are not prefixed /wp-json (or /wp-json/) are rejected with a 403 Forbidden. The RewriteCond directive … Read more