Forum

How to Create Plugin called "Send Email To Friend" in WordPress??

This thread contains 1 reply, has 2 voices, and was last updated by  Anonymous 2 months, 2 weeks ago.

  • Author Replies
  • #18250

    how to create custom plugin in wordpress for bigginer?


  •  Anonymous
    #51347

    To create a plugin, all you need to do is create a folder and then create a single file with one line of content. Navigate to the wp-content/plugins folder, and create a new folder named yourpluginname. Inside this new folder, create a file named yourpluginname.php.

    Firstly you need to structure your Plug-in: When creating complex functionality, splitting your plugin into multiple files and folders might be easier.

    2. Name Your Plug-In And Its Functions: When creating a plugin, practice caution in naming the functions, classes, and plugin itself. If your plugin is for generating amazing excerpts, then calling it “excerpts” and calling its main function “the_excerpt” might seem logical. But these names are far too generic and might clash with other plugins that have similar functionality with similar names.

    3. Plugin Safety, Of course: If you plan to distribute your plugin, then security is of utmost importance because now you are fiddling with other people’s websites, not just your own. All of the security measures you should take merit.

    4. Cleaning Up: Many plugins leaves a lot of unnecessary data lying around. Data that only your plugin uses can wind up as dead weight if the plugin doesn’t clean up after itself.


You must be to reply to this thread.Please or . Registration is 100% free.

GET FREE CONSULTATION

Call Us Now For Free Consultation97370 05566

Our experts listen to you patiently and suggest you the right course after conducting a personality profile test. Register your interest below to schedule personality profile test for you.

SUBSCRIBE TO OUR NEWSLETTER

Contact Us

Working Hours

  • Monday9:00 AM – 9:00 PM
  • Tuesday9:00 AM – 9:00 PM
  • Wednesday9:00 AM – 9:00 PM
  • Thursday9:00 AM – 9:00 PM
  • Friday9:00 AM – 9:00 PM
  • Saturday9:00 AM – 9:00 PM
  • SundayClosed
Copyright 2016-2019 Smart Mentors. All Rights Reserved.

Login

FORGOT PASSWORD

Sign up now to Become An Instructor

Register your Interest