Wordpress Plugin Development Tutorial

WordPress Plugin Development Quickies – Useful Code Snippets

This post is a collection of short but useful WordPress snippets.

Become a professional WordPress Plugin developer

Take our online course WordPress Plugin Development – Learn by Building 8 Plugins to gain all the skills you need to start creating your own WordPress Plugins with PHP.

Get the blog name in WordPress:

Get a media URL in WordPress:

Get the value of a setting in WordPress:

Get homepage URL in WordPress:

Include a file in a plugin that is in the plugin directory:

Create a settings page:

1. Needed actions:

2. Register settings:

3. Add menu entry:

4. Plugin settings page:

Create a shortcode with arguments and content in WordPress:

 

 

Share this article

Leave a Reply

avatar
  Subscribe  
Notify of