array( 'order_id' => '2', 'status' => class_exists( 'bbPress' ), 'is_free' => true, 'name' => 'bbPress', 'type' => 'checkbox', 'options' => array( 'enable_bbpress_topic' => array( 'id' => 'aioc_enable_bbpress_topic', 'default' => aioc_option( 'aioc_enable_bbpress_topic' ), 'label' => 'New Topic Form', ), 'enable_bbpress_reply' => array( 'id' => 'aioc_enable_bbpress_reply', 'default' => aioc_option( 'aioc_enable_bbpress_reply' ), 'label' => 'Reply Form', ), ), ), 'buddypress' => array( 'order_id' => '3', 'status' => class_exists( 'BuddyPress' ), 'is_free' => true, 'name' => 'BuddyPress', 'type' => 'checkbox', 'options' => array( 'enable_bp_register' => array( 'id' => 'aioc_enable_bp_register', 'default' => aioc_option( 'aioc_enable_bp_register' ), 'label' => 'Register Form', ), ), ), 'cf7' => array( 'order_id' => '4', 'status' => class_exists( 'WPCF7' ), 'is_free' => true, 'name' => 'Contact Form 7', 'type' => 'checkbox', 'options' => array( 'enable_cf7' => array( 'id' => 'aioc_enable_cf7', 'default' => aioc_option( 'aioc_enable_cf7' ), 'label' => 'CF7 Form', ), ), ), 'edd' => array( 'order_id' => '5', 'status' => class_exists( 'Easy_Digital_Downloads' ), 'is_free' => true, 'name' => 'Easy Digital Downloads', 'type' => 'checkbox', 'options' => array( 'enable_edd_login' => array( 'id' => 'aioc_enable_edd_login', 'default' => aioc_option( 'aioc_enable_edd_login' ), 'label' => 'Login Form', ), 'enable_edd_register' => array( 'id' => 'aioc_enable_edd_register', 'default' => aioc_option( 'aioc_enable_edd_register' ), 'label' => 'Register Form', ), 'enable_edd_lost_password' => array( 'id' => 'aioc_enable_edd_lost_password', 'default' => aioc_option( 'aioc_enable_edd_lost_password' ), 'label' => 'Lost Password Form', ), 'enable_edd_checkout' => array( 'id' => 'aioc_enable_edd_checkout', 'default' => aioc_option( 'aioc_enable_edd_checkout' ), 'label' => 'Checkout Form', ), ), ), 'woocommerce' => array( 'order_id' => '6', 'status' => class_exists( 'WooCommerce' ), 'is_free' => true, 'name' => 'WooCommerce', 'type' => 'checkbox', 'options' => array( 'enable_woo_login' => array( 'id' => 'aioc_enable_woo_login', 'default' => aioc_option( 'aioc_enable_woo_login' ), 'label' => 'Login Form', ), 'enable_woo_register' => array( 'id' => 'aioc_enable_woo_register', 'default' => aioc_option( 'aioc_enable_woo_register' ), 'label' => 'Register Form', ), 'enable_woo_lost_password' => array( 'id' => 'aioc_enable_woo_lost_password', 'default' => aioc_option( 'aioc_enable_woo_lost_password' ), 'label' => 'Lost Password Form', ), 'enable_woo_review' => array( 'id' => 'aioc_enable_woo_review', 'default' => aioc_option( 'aioc_enable_woo_review' ), 'label' => 'Review Form', ), 'enable_woo_checkout' => array( 'id' => 'aioc_enable_woo_checkout', 'default' => aioc_option( 'aioc_enable_woo_checkout' ), 'label' => 'Checkout Form', ), ), ), 'wordpress' => array( 'order_id' => '1', 'status' => true, 'is_free' => true, 'name' => 'WordPress', 'type' => 'checkbox', 'options' => array( 'enable_login' => array( 'id' => 'aioc_enable_login', 'default' => aioc_option( 'aioc_enable_login' ), 'label' => 'Login Form', ), 'enable_register' => array( 'id' => 'aioc_enable_register', 'default' => aioc_option( 'aioc_enable_register' ), 'label' => 'Register Form', ), 'enable_lost_password' => array( 'id' => 'aioc_enable_lost_password', 'default' => aioc_option( 'aioc_enable_lost_password' ), 'label' => 'Lost Password Form', ), 'enable_comment_form' => array( 'id' => 'aioc_enable_comment_form', 'default' => aioc_option( 'aioc_enable_comment_form' ), 'label' => 'Comment Form', ), ), ), 'wpforms' => array( 'order_id' => '7', 'status' => class_exists( 'WPForms' ), 'is_free' => true, 'name' => 'WPForms', 'type' => 'checkbox', 'options' => array( 'enable_wpforms' => array( 'id' => 'aioc_enable_wpforms', 'default' => aioc_option( 'aioc_enable_wpforms' ), 'label' => 'Form Auto-Add', ), ), ), ); return $form_fields; } /** * Get captcha integrations by plugin status. * * @since 1.0.0 * * @param bool $plugin_status Plugin status . */ function aioc_get_captcha_integrations( $plugin_status = null ) { $form_fields = aioc_captcha_integrations_fields(); usort( $form_fields, 'aioc_sort_by_order_id' ); $plugin_name = basename( AIOC_DIR ); $field_name = 'is_free'; if ( 'all-in-one-captcha' === $plugin_name ) { $field_name = 'status'; } foreach ( $form_fields as $field ) { if ( 'active-plugin' === $plugin_status && ! empty( $field[ $field_name ] ) ) { $disable = false; aioc_field_captcha_integrations( $field, $disable ); } elseif ( 'inactive-plugin' === $plugin_status && empty( $field[ $field_name ] ) ) { $disable = true; aioc_field_captcha_integrations( $field, $disable ); } } } /** * Render captcha integrations. * * @since 1.0.0 * * @param array $field Integration field. * @param string $disable Disable for inactive. */ function aioc_field_captcha_integrations( $field, $disable ) { ?>
Pro

$option ) : ?>