action_dispatcher(); $this->filter_dispatcher(); } } /** * Set the actions we need in this class. * * @access private * @return void */ private function action_dispatcher() { } /** * Set the filters we need in this class. * * @access private * @return void */ private function filter_dispatcher() { add_filter( 'agncy_breadcrumb', array( $this, 'yoast_breadcrumbs' ) ); } /** * Check if the yoast breadcrumbs exist and if so return them. * * Yoast Breadcrumbs are awesome and we use them all the time. Thats why we * filter them in our theme for some awesome use cases. * * @access public * @return string The yoast breadcrumb */ public function yoast_breadcrumbs() { if ( function_exists( 'yoast_breadcrumb' ) ) { return yoast_breadcrumb( null, null, false ); } } } new AgncyYoastCompatibility();