WP Customer Area has been built with modularity in mind. If you have some basic knowledge about WordPress theme development, you will find here some useful information to customize your private dashboard.
WP Customer Area provides a list of theme_supports. Please check the add_theme_support function documentation for more details.
Tells WP Customer Area that this theme is providing its own stylesheet (will hide CSS settings from the plugin options page). This will disable the WP Customer Area skins.
add_theme_support( 'customer-area.stylesheet' );
Custom navigation menu
Tells WP Customer Area that this theme is already outputting the WP Customer Area navigation menu (will hide automatic navigation menu printing settings from the plugin options page).
Custom single templates
Tells WP Customer Area that this theme is providing single post templates for private content and containers (will disable the settings linked to ‘single post footer’ for the given post types).
add_theme_support('customer-area.single-post-templates', array( 'cuar_private_file', // Customize display in file single-cuar_private_file.php 'cuar_private_page', // Customize display in file single-cuar_private_page.php 'cuar_conversation', // Customize display in file single-cuar_conversation.php 'cuar_project', // Customize display in file single-cuar_project.php 'cuar_tasklist', // Customize display in file single-cuar_tasklist.php ));
If we want to disable jQuery Select2 and replace it with our own alternative, we should tell the plugin that not only we don’t want it to include the files, but also that we don’t want it to output any related markup.
add_theme_support( 'customer-area.library.jquery.select2', array( 'files', 'markup' ) );
Other libraries that may be also disabled/taken care of. If we don’t specify an array as a parameter, the plugin assumes that the theme is taking care of everything for that library (files, markup, …).
add_theme_support('customer-area.library.bootstrap.dropdown'); add_theme_support('customer-area.library.bootstrap.transition'); add_theme_support('customer-area.library.bootstrap.collapse');
Hint: Check the file /plugins/customer-area/src/core-classes/plugin.class.php at the function
enable_library to get a full list of librairies used by WP Customer Area.