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:



Published by

Pablo Farias Navarro

Pablo is a web + mobile app developer and entrepreneur. Pablo is the founder of ZENVA. Besides teaching online how to create games, apps and websites to over 85,000 students, Pablo has created content for companies such as Amazon and Intel.ZENVA runs four development communities featuring game, web and mobile app development tutorials: Zenva Academy, GameDev Academy, HTML5 Hive (also known as "the hive"), and for Spanish speakers, De Idea A App.Pablo holds a Master in Information Technology (Management) degree from the University of Queensland (Australia) and a Master of Science in Engineering degree from the Catholic University of Chile. Specialized in web, mobile application and game development.

Share this article