. */ /** * Load the plugin files * * @return bool */ function _bootstrap_mc4wp_captcha() { // check if dependencies are met $dependencies_met = include dirname( __FILE__ ) . '/dependencies.php'; if( ! $dependencies_met ) { return false; } require_once dirname( __FILE__ ) . '/functions.php'; add_filter( 'mc4wp_form_errors', 'mc4wp_captcha_form_errors', 10, 2 ); add_filter( 'mc4wp_form_messages', 'mc4wp_captcha_register_form_message' ); add_filter( 'mc4wp_dynamic_content_tags_form', 'mc4wp_captcha_add_dynamic_content_tags' ); add_filter( 'mc4wp_form_ignored_field_names', 'mc4wp_captcha_ignored_fields' ); add_action( 'mc4wp_admin_form_after_messages_settings_rows', 'mc4wp_captcha_add_form_message_settings_row', 10, 2 ); add_filter( 'gglcptch_exclude_forms', 'mc4wp_captcha_exclude_form_from_ajax_check' ); add_action( 'wp_footer', 'mc4wp_captcha_print_js' ); return true; } add_action( 'plugins_loaded', '_bootstrap_mc4wp_captcha', 30 );