Use 'roots/' for filters
This commit is contained in:
@@ -68,7 +68,7 @@ function roots_display_sidebar() {
|
||||
)
|
||||
);
|
||||
|
||||
return apply_filters('roots_display_sidebar', $sidebar_config->display);
|
||||
return apply_filters('roots/display_sidebar', $sidebar_config->display);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@ class Roots_Nav_Walker extends Walker_Nav_Menu {
|
||||
$item_html = preg_replace('/<a[^>]*>(.*)<\/a>/iU', '$1', $item_html);
|
||||
}
|
||||
|
||||
$item_html = apply_filters('roots_wp_nav_menu_item', $item_html);
|
||||
$item_html = apply_filters('roots/wp_nav_menu_item', $item_html);
|
||||
$output .= $item_html;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class Roots_Wrapping {
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
$this->templates = apply_filters('roots_wrap_' . $this->slug, $this->templates);
|
||||
$this->templates = apply_filters('roots/wrap_' . $this->slug, $this->templates);
|
||||
return locate_template($this->templates);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user