How to load a wordpress plugin at very last

You need to load your plugin at vert last? Well, sometimes we develop a simple plugin that is dependent to other plugins, something like add-on. So, in those cases, the addon plugins need to be loaded after the parent plugin. Here is a small snippet that need to put at the addon plugin to make sure that the plugin will be load at the last of all plugins.

Here you go:

Enjoy!

post

How to make your wordpress secure, wp config tips and many more


Fatal error: Uncaught Error: Call to a member function id() on array in /home/bappidgr/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /home/bappidgr/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /home/bappidgr/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'define( 'WP_DEB...') #3 /home/bappidgr/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('define( 'WP_DEB...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /home/bappidgr/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 /home/bappidgr/public_html/wp-content/plugins/crayon-syntax-highligh in /home/bappidgr/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36