WordPress – make plugin extendable by addon

I am making WP plugin,
I am also planning to provide Addons for this plugin.

Please tell me how to make WordPress plugin extendable.

Related posts

Leave a Reply

2 comments

  1. It really depends on the plugin , it´s functionality , and what “extension” you want or what will they do .

    One thing is for sure , you will follow best practice using apply_filters() and add_action()

    ( specific function codex: apply_filters() & add_action() )

    There is a nice tutorial HERE

    Of course ,there are other methods, for example you can add the so-called extensions with as a stand-alone plugin, and use if ( function_available('my_extension') ) to check whether it is installed or not , and verify whether a certain action should or should not be taken place .