Viewing 1 replies (of 1 total)
  • Plugin Author Ben Huson

    (@husobj)

    I would not recommend you include the plugin file in the theme as it would then not receive any plugin updates if there are any security issues etc.

    It’s best just to build the theme so that it works with/without the plugin and direct users to download the plugin to add that functionality.

    Just ensure you use function_exists when using the plugin code in your templates so it doesn’t produce errors if the plugin is disabled.

    <?php if ( function_exists( 'the_subtitle' ) ) the_subtitle(); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘include the plugin in functions.php’ is closed to new replies.