WP Customer Area provides a few tools to help developers when they need to extend or change the plugin behaviour. Those tools are located in the status page of the main WP Customer Area menu in your administration interface and is divided into four tabs:
- Installed add-ons
- Pages
- Actions and filters
- Templates.
Installed add-ons
If you need to access a specific instance of an extension in order to use its functions, you have to know its ID. ID is listed on this screen, and can simply be used in the code snippet below:
$addon = cuar_addon( 'the-addon-id' );
Also note the column indicating the minimum version of WP Customer Area required to properly operate an extension.
Pages
The front office of WP Customer Area is provided by standard WordPress pages. Developers can use hooks provided by these pages and override their templates. In some cases, you will need to obtain information about a particular page. The page tab gives you some insight about the pages that are installed and active on the site:
- The page slug which is used in some hook names;
- The current WordPress page ID associated to that customer page and its status so that you can check that all pages are associated and they are published;
- Whether or not the page has a sidebar you can customise;
- The type of page (basic, redirect, content list, content creation) so that you understand how the page works and what can be customized (see the specific section about front-office pages)
Actions and Filters
WP Customer Area provides many hooks (both actions and filters) which can be used to customize the plugin behaviour. While all of these hooks are not yet documented, the “actions and filters” tab lists them all and lets you know exactly where they are defined (file and path).
This can also help you to see in which context the code snippets we provide in the documentation or in the support forum are calling those hooks.