Get data from the promise of WordPress apiFetch

Get data from the promise of WordPress apiFetch

apiFetch package is a very useful utility in WordPress. It helps to retrieve data from the REST API endpoint, for example. Here’s the usage for a default REST API endpoint: https://localhost/wp-json/wp/v2/posts. If you want to enable REST API for your

Writing PHPUnit test for REST API & Custom Post Types in WordPress

Writing PHPUnit test for REST API & Custom Post Types in WordPress

Tests for REST API are even more important because you never know how the API may respond to various environments or situations. If you haven’t set up PHPUnit tests for your WordPress plugin yet, I’d recommend checking out the guide

Automate WordPress posts with Webhooks or API [code]

Automate WordPress posts with Webhooks or API [code]

Would you like to send your published WordPress posts to external services via webhooks or API? Send published posts to an online automation tool such as Zapier, automate.io to automate tasks? Here’s are the list of key features we’ll accomplish

WooCommerce hook after the order is completed

WooCommerce hook after the order is completed

Are you looking to do something after the WooCommerce order is completed? You can use the woocommerce_order_status_completed  WooCommerce hook to accomplish that. Here’s the usage of the hook: Example The following example creates a new customer when the user’s order

Correctly remove the site title in WordPress

Correctly remove the site title in WordPress

Do you only want to display a logo and not a site title in WordPress? To do that go to your site dashboard > Appearance > Customize > Site Identity and choose the option “Header Logo Only”. Never remove the

× WhatsApp