Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does WordPress provide plugin override functionality the way Joomla does?

I would like to override the output for a WordPress plugin in a similar manner as I would for Joomla, is this possible?

like image 897
Anriëtte Myburgh Avatar asked Jul 18 '26 18:07

Anriëtte Myburgh


1 Answers

You can use filters to change data before it is output.

http://codex.wordpress.org/Plugin_API#Filters

Or the template_include filter can be used to serve up a different custom template. e.g.

function choose_template($template)
{
  if( $template == 'plugin-template-page.php' )
  {
    $template = 'my-template-page.php';
  }
  return $template;
}
add_filter('template_include','choose_template');
like image 106
Tom Avatar answered Jul 20 '26 09:07

Tom