Common issues while setting up PHP Unit Tests for WordPress plugins

Common issues while setting up PHP Unit Tests for WordPress plugins

Writing PHP Unit tests is a good practice to help developers identify the bugs and fix them in the development environment before going to production. It’s a good practice to write unit tests for your WordPress plugin as well. However,

Use wp_add_inline_script() to pass generic data from PHP to page script.

Use wp_add_inline_script() to pass generic data from PHP to page script.

wp_localize_script() is used by many developers to pass data from PHP to JavaScript. However, wp_localize_script() is intended to be used for localization and internationalization. Developers are using this to pass random data to script because it works and it was

Introducing the “How Many Posts” plugin. 🎉

Introducing the “How Many Posts” plugin. 🎉

Would you like to know how many posts are being published every week by your writers? The WordPress “How Many Posts” plugin sends you (site administrator) an automatic email notification every week on the number of posts published this past

Add music files via URL in the WordPress All in One Music Player plugin

Add music files via URL in the WordPress All in One Music Player plugin

The WordPress All In One Music Player is a collection of music players for your WordPress site where you can choose your favorite music player to play the music files. In case you haven’t added the music player yet, here’s

Disable the language dropdown from the WordPress login page

Disable the language dropdown from the WordPress login page

WordPress 5.9 added a feature to choose the language dropdown in the default WordPress login page. This feature is available in the login screen, the password reset screen, and the registration screen. If you do not want this feature or

× WhatsApp