I´m developing a theme that include plugins. One of this plugins is a contact form. And this plugin have an asociate code to validate input data. Because I don´t know in what pages contact form was been added... I want to find a right way to detect if a plugin is included in a current page.
<?php get_header(); ?> <?php if( is contact form included ) : ?> //include php form valdiation... <?php endif; ?> //page content code ... <?php get_footer(); ?>
Note: I don´t want to check if a plugin is activated. The plugin is included with theme, therefore is active. I want to detect if is current using for example in page.php. The issue should be include php form validation only when page include contact form.
Any suggestion or advice are welcome :)