While making another module you’ll have to begin with a basic PHP record. This can be named anything besides ought to for the most part mirror your module’s official name. So for instance I have made our base code and have named my document index.php or pluginname.php.

The main lines of your module must be remark data for the parsing motor. This is critical as WordPress will be notable process your document without. The following is a sample code snippit you can duplicate and shape towards your own.



Plugin Name: Visitor count

Plugin URI: http://www.webetutorial.com/

Description: WordPress visitor count plugin. This plugin show number of unique visitor visited your site.

Author: Victor

Version: 1.0

Author URI: http://www.webetutorial.com/



The Plugin Name is what will show up in your Admin backend panel when you go to activate. Same with the URI which will be placed in the details pane inside the plug-ins panel. Although it’s not required to include a version or description it does make your plugin look much more professional.

0 thoughts on “WP Starting PHP File”

Leave a Reply

Latest Article


Check Attachment Existence WordPress Tutorial

If you want to CHECK the same attachment name exists already before creating a new one or before inserting the attachment into the DB, you can use the following method: // check if attachment already Read more…


How to Create a Custom Page in WordPress

First, you need to open a text editor  add the blank file add this line of code at the top: <?php /* Template Name: Custom Page Template */ ?> Editing Your Custom Page Template Your Read more…


How to add user profile image by custom URL and custom fields in woocommerce

If you want to add user profile image by custom URL and add custom fields of profile image like first name, last name in your woo-commerce registration form then see our code below, you can Read more…