function wpcf7_init() { wpcf7(); // L10N wpcf7_load_plugin_textdomain(); // Custom Post Type wpcf7_register_post_types(); do_action('wpcf7_init'); }
return false; } if (!($table = $wpcf7->{$table})) { return false; } return strtolower($wpdb->get_var("SHOW TABLES LIKE '{$table}'")) == strtolower($table); } function wpcf7() { global $wpdb, $wpcf7; if (is_object($wpcf7)) { return; } $wpcf7 = (object) array('contactforms' => $wpdb->prefix . "contact_form_7", 'processing_within' => '', 'widget_count' => 0, 'unit_count' => 0, 'global_unit_count' => 0); } wpcf7(); require_once WPCF7_PLUGIN_DIR . '/includes/functions.php'; require_once WPCF7_PLUGIN_DIR . '/includes/formatting.php'; require_once WPCF7_PLUGIN_DIR . '/includes/pipe.php'; require_once WPCF7_PLUGIN_DIR . '/includes/shortcodes.php'; require_once WPCF7_PLUGIN_DIR . '/includes/classes.php'; require_once WPCF7_PLUGIN_DIR . '/includes/taggenerator.php'; if (is_admin()) { require_once WPCF7_PLUGIN_DIR . '/admin/admin.php'; } else { require_once WPCF7_PLUGIN_DIR . '/includes/controller.php'; } function wpcf7_contact_forms() { global $wpdb, $wpcf7; return $wpdb->get_results("SELECT cf7_unit_id as id, title FROM {$wpcf7->contactforms}");