Include dynamic adverts on the settings pages of your plugin to make your clients aware of your other products.
- Show any content to WordPress administrators when they use the settings page of your plugin
- All advert content is served from your web site
- Your settings page will be expanded if needed to make sure your adverts are presented cleanly
- Include notes or convey thought for the day information to users
The plugin requires PHP 5.3 or later. It is tested with WordPress up to 4.6.1
There are plugins that allow a site owner to include adverts within WordPress site pages. There are plugins that allow site owners to display adverts to other administrators. But there are no plugins to help plugin authors include adverts within the settings pages of their own plugin.
The purpose of this plugin is to address this need by providing not just a plugin but a re-usable framework to make it easy for plugin developers to include adverts with the plugin’s backend user interface, for example, in the settings.
I can do this myself. Why do I need a plugin?
Of course, there is no magic, and if you want and are able to roll your own advertising mechanism it may be the correct option for you. What the plugin provides is a re-usable framework, example code showing how to add an area to your or any settings that displays adverts and a means to serve adverts from your site.
The plugin is installed the same way as any 3rd party plugin: download the plugin zip from your account after purchase; use the WordPress plugin manager to upload and install the plugin.
Once you have installed and activated the plugin, go to the settings page (from the Tools menu) and see how product adverts can be displayed. The code to display these adverts can be found in the file ‘settings.php’ in the ‘includes’ sub-folder. It uses a function called ‘advert’ that can be found in the ‘advert.php file and which you can copy into your plugin project.
You can use any content as the adverts. You may want to display Google Adwords. But the framework is intended to allow you to display information about your other plugins and make your users aware of any other plugins that may be relevant. It will also, optionally, show version information if it is relevant and a ‘thought for the day’.
The thought for the day is a topical message you might want to show users. It is only valid for one day so users are not going to see the same message day after day.
The plugin also acts as the advert server. You can change the default behaviour and serve any content but by default, the plugin will create adverts using the thumbnail associated with posts and pages on your site. You can filter the posts by selecting the post types to consider and by selecting a category.