Extremely Useful WordPress Tips And Tricks No One Told You About

By July 9, 2015 Blog No Comments
Extremely Useful Wordpress Tips And Tricks No One Told You About

Much like fashion, WordPress industry keeps changing and evolving with trends and fads coming and going. If you take your career of a professional developer seriously, you need to make sure you’re up to date with the latest features and design trends – otherwise you risk falling behind your competitors. Check out these simple, yet incredibly useful WordPress tips and tricks even experienced developers use on a daily basis.

Prefix Your Functions

This is one of those best practices that might sound obvious to experienced developers, but it’s worth mentioning, particularly for those developers just starting out. If you take away just one of the useful WordPress tips we mention today, make sure it’s this one, as it can help you avoid tons of problems when developing WordPress plugins.

Extremely Useful WordPress Tips And Tricks No One Told You AboutBuy Theme Open Demo

When plugins are activated, PHP loads each function of every plugin in one place, without separating them, which is by no means a problem on its own. However, if two plugins happen to have functions with the same name like copy_file(), you’ll have a serious problem on your hands. One of the solutions is to either use classes or prefixes. For example, if your plugin is called Brilliant AvaThemes Plugin, you might use an abbreviation as the prefix and name your function batp_copy_file() instead of copy_file().

Set Up Your Own Settings Page Or Admin Menu

If you’re developing a premium WordPress theme or a plugin for general use, and not for other developers, you will want to include as many customization options as possible to help your buyers set up a truly unique website, or customize the plugin to match the rest of their website. However, you don’t want to overwhelm them with too many options buried throughout various menus, or force them to mess around with the code.

Extremely Useful WordPress Tips And Tricks No One Told You AboutBuy Theme Open Demo

One of the most useful WordPress tips every experienced developer will give you is to set up your own settings page with simple, easy to understand and intuitive to use options page that enables your buyers to tweak every element of their website in one place without touching a single line of code. And if you’re smart about it, you will also be able to use the same page in your other themes as well, with minor tweaks.

Useful WordPress Tips To Tackle WordPress Shortcodes

Learning how and when to use WordPress shortcodes from the get-go can be incredibly useful down the road. Shortcodes are essentially code placeholders you can use throughout pages and posts without having to actually write the code over and over again. For example, you can create a custom box with social sharing buttons and include the shortcode after each blog post. Copying and pasting a snippet of code isn’t such a big problem, but if you decide you no longer like the box border, you can simply change it in the shortcode and the change will be applied wherever you used the particular shortcode.

Leave a Reply