web/wp-content/plugins/caldera-forms/classes/field/honey.php
/**
     * Create URL for redirect triggered by honey pot failure
     *
     * @since 1.5.5
     *
     * @param array $referrer  Parsed HTTP referrer
     * @param string|int $form_instance_number Current form instance identifier
     * @param string $process_id Process ID for current submission attempt
     * @return string
     */
Create URL for redirect triggered by honey pot failure
@since 1.5.5

@param array $referrer  Parsed HTTP referrer
@param string|int $form_instance_number Current form instance identifier
@param string $process_id Process ID for current submission attempt
@return string
Create URL for redirect triggered by honey pot failure @since 1 . 5 . 5 @param array $referrer Parsed HTTP referrer @param string|int $form_instance_number Current form instance identifier @param string $process_id Process ID for current submission attempt @return string
public static function redirect_url( $referrer, $form_instance_number, $process_id ){
        $referrer[ 'query' ][ 'cf_su' ] = $form_instance_number;
        $query_str                      = array(
            'cf_er' => $process_id
        );
        if ( ! empty( $referrer[ 'query' ] ) ) {
            $query_str = array_merge( $referrer[ 'query' ], $query_str );
        }
        $url = add_query_arg( $query_str, $referrer[ 'path' ] );
        return apply_filters( 'caldera_forms_honey_redirect_url', $url );
    }
public static function redirect_url ( $ referrer , $ form_instance_number , $ process_id ) { $ referrer [ 'query' ] [ 'cf_su' ] = $ form_instance_number ; $ query_str = array ( 'cf_er' => $ process_id ) ; if ( ! empty ( $ referrer [ 'query' ] ) ) { $ query_str = array_merge ( $ referrer [ 'query' ] , $ query_str ) ; } $ url = add_query_arg ( $ query_str , $ referrer [ 'path' ] ) ; return apply_filters ( 'caldera_forms_honey_redirect_url' , $ url ) ; }
Create URL for redirect triggered by honey pot failure
 @since 1.5.5
Create URL for redirect triggered by honey pot failure @since 1 . 5 . 5
/**
         * Change URL URL for redirect triggered by honey pot failure
         *
         * @since 1.5.5
         *
         * @param string $url The URL to use
         */