Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/masiursiddiki/htdocs/masiursiddiki.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the neve domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/masiursiddiki/htdocs/masiursiddiki.com/wp-includes/functions.php on line 6114
Hello world from another WordPress Plugin - Masiur Rahman Siddiki
Skip to content
Home Âģ Hello world from another WordPress Plugin

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>';
		 die();
	 });
}

Now run the code.

Go to your site url like

http://wordpress.local/?test=a

Enjoy the output!

3 thoughts on “Hello world from another WordPress Plugin”

Leave a Reply

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