Skip to content
Snippets Groups Projects
Commit b61c391d authored by Lucas García's avatar Lucas García
Browse files

fix: get_forms integration check

parent 83cc62d9
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,9 @@ class Settings extends Abstract\Settings
private function get_forms()
{
global $wpdb;
if (apply_filters('wpct_dc_is_active', 'contact-form-7/wp-contact-form-7.php')) {
if (apply_filters('wpct_dc_is_active', false, 'contact-form-7/wp-contact-form-7.php')) {
return $wpdb->get_results("SELECT id, post_title title FROM wp_posts WHERE post_type = 'wpcf7_contact_form' AND post_status = 'publish'");
} elseif (apply_filters('wpct_dc_is_active', 'gravityforms/gravityforms.php')) {
} elseif (apply_filters('wpct_dc_is_active', false, 'gravityforms/gravityforms.php')) {
return $wpdb->get_results("SELECT id, title FROM wp_gf_form WHERE is_active = TRUE");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment