• Skip to primary navigation
  • Skip to main content

BookingWP™

WordPress Appointment Booking Plugins for WooCommerce

  • Get Appointments
  • Showcase
  • Contact
  • My Account

Introducing Widget Filters

Filters have been available all the time, but never on this scale. Besides the fact all widgets are hooked (can be easily customized with actions), all have additional filters available. In addition to vast list of default WordPress filters, we decided to give developers more control over our themes, without a need to customize any core theme files.

How it works?

  1. Open custom/custom_functions.php
  2. Add new filters, examples below.

Filter 1 example: Widget Title (all themes)

add_filter('widget_title', 'my_widget_title');
function my_widget_title($title) {
	return '<h6>' . $title . '</h6>';
}

Filter 2 example:  Slider widget (Polar Media)

// slide title
add_filter('wslider_post_title', 'my_slide_title');
function my_slide_title($title) {
	return '<h6>' . $title . '</h6>';
}
// slide content
add_filter('wslider_post_content', 'my_slide_content');
function my_slide_content() {
	return 'my custom slide content';
}
// slider query arguments
add_filter('wslider_args', 'my_slide_args');
function my_slide_args() {
	$slide_args = array(
		'post_type'     => 'page',
		'include'       => '',
		'exclude'       => '',
		'order'         => 'ASC',
		'orderby'       => 'date'
		);
				return $slide_args;
}

Follow @bookingwp 900+ followers

  • About
  • Blog
  • Support
  • Terms
  • Privacy

© BookingWP™