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

Create your own custom WP-CLI commands

Create your own custom WP-CLI commands

Are you a command-line freak like me? Do you want to create some custom WP-CLI commands? If you’re not already familiar with WP-CLI, WP-CLI is a command-line interface for WordPress. There are many commands available by default to make your

× WhatsApp