Car Demon Custom Disclaimer

$14.95

This PlugIn is the fastest, easiest method for changing or hiding the disclaimer on your Single Vehicle Pages.

SKU: cd-disclaimer Category:

Description

This PlugIn is the fastest, easiest method for changing or hiding the disclaimer on your Single Vehicle Pages.

It adds a new setting area to the Car Demon Settings page that let’s you change your disclaimer and its title. It can also be used to hide the disclaimer if you wish.

NOTE: You don’t need this PlugIn to change your disclaimer. If you feel comfortable adding code to your site you can leverage the disclaimer filter to change or hide the disclaimer without this PlugIn.

Here’s a quick example of some code you can drop into your theme’s functions.php file that you can use to change your disclaimer without using this plugin:

// Filter the disclaimer text
add_filter( 'car_demon_disclaimer_text_filter', 'my_disclaimer_text_filter' );
function my_disclaimer_text_filter( $content) {
     $content = 'This is my custom disclaimer';
     return $content;
}

The above example shows you how to filter the disclaimer text.

You can also filter the entire disclaimer section, including the title.

Here’s a quick example of how to filter the entire section and change the title:

// Filter entire disclaimer area
add_filter( 'car_demon_disclaimer_filter', 'my_disclaimer_filter' );
function my_disclaimer_filter( $content ) {
     // $content contains the current disclaimer HTML
     // Use str_replace() to find the current title and replace it
     $content = str_replace('Disclaimer', 'My New Title', $content);
     return $content;
}

These examples are provided as is with no guarantee, warranty or support.

If you want to learn more about filters here’s a great article by WPBeginner you might want to read:

http://www.wpbeginner.com/glossary/filter/

This PlugIn is a bit more advanced than the above examples, but accomplishes the same goal without the need to add any custom code.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.