web/wp-content/plugins/caldera-forms/classes/field/honey.php
/**
     * Create array of possible honey words
     *
     * Checks that there isn't a field ID that is one of the words and eliminates those.
     * Normally this does not happen because field IDs, which become field name attributes are fld12345, but they can be anything.
     *
     * @since 1.5.5
     *
     * @param array $form Form config Form config
     * @return array
     */
Create array of possible honey words
Checks that there isn't a field ID that is one of the words and eliminates those.
Normally this does not happen because field IDs, which become field name attributes are fld12345, but they can be anything.



@param array $form Form config Form config
@return array
Create array of possible honey words Checks that there isn ' t a field ID that is one of the words and eliminates those . Normally this does not happen because field IDs which become field name attributes are fld12345 but they can be anything . @param array $form Form config Form config @return array
protected static function words( $form ){
        $honey_words = apply_filters( 'caldera_forms_get_honey_words', array(
            'web_site',
            'url',
            'email',
            'company',
            'name',
            'phone',
            'twitter',
            'order_number'
        ) );
        foreach( Caldera_Forms_Forms::get_fields( $form, false ) as $id => $field ){
            if( in_array( $field[ 'ID' ], $honey_words  ) ){
                unset( $honey_words[ $field[ 'ID' ] ] );
            }
        }
        if( empty( $honey_words ) ){
            $honey_words = array( home_url() );
        }
        return $honey_words;
    }
protected static function words ( $ form ) { $ honey_words = apply_filters ( 'caldera_forms_get_honey_words' , array ( 'web_site' , 'url' , 'email' , 'company' , 'name' , 'phone' , 'twitter' , 'order_number' ) ) ; foreach ( Caldera_Forms_Forms :: get_fields ( $ form , false ) as $ id => $ field ) { if ( in_array ( $ field [ 'ID' ] , $ honey_words ) ) { unset ( $ honey_words [ $ field [ 'ID' ] ] ) ; } } if ( empty ( $ honey_words ) ) { $ honey_words = array ( home_url ( ) ) ; } return $ honey_words ; }
Create array of possible honey words
 Checks that there isn't a field ID that is one of the words and eliminates those.
Create array of possible honey words Checks that there isn ' t a field ID that is one of the words and eliminates those .
//This is sub-optimal, but need something.