Hello world from another WordPress Plugin

Welcome to WordPress. From a new plugin you can print hello world like this.

First of all, call an action within a Global Request method as follows:

# ../wp-content/plugins/MyPlugin/myplugin.php
if (isset($_REQUEST['test']) && $_REQUEST['test'] == 'a') {
	 add_action('init', function () {
		 echo 'Hello World';
		 echo '<br>';
		 echo 'Hello from WordPress';
		 echo '<br>';

Now run the code.

Go to your site url like


Enjoy the output!

4 thoughts on “Hello world from another WordPress Plugin”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top