• Resolved lilaeamedia

    (@lilaeamedia)


    Hi,

    I love your submissions plugin and am using it with our client sites. I have added a couple of hooks to enable encryption of sensitive data with external functions.

    Maybe you could add this to the stable version:

    Submissions.php, line 157:

    $additional_fields = apply_filters( 'wpcf7s_save_fields', $submission['fields'] );

    Admin.php, line 367

    return apply_filters( 'wpcf7s_get_fields', $posted );

    Thanks,

    –JF

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jasongreen

    (@jasongreen)

    Hi JF

    I’ve added the following filters in the latest version.

    public function get_mail_posted_fields($post_id = 0)
        {
            ...
            $posted = apply_filters('wpcf7s_posted_values', $posted);
    }
    public function get_mail_files($post_id = 0)
        {
            ...
            $posted = apply_filters('wpcf7s_posted_files', $posted);
    
            return $posted;
    }
    private function save($submission = array())
        {
            if(true === apply_filters('wpcf7s_save_submission', true, $submission['form_id']))
            {
                ...
                    $additional_fields = apply_filters('wpcf7s_submission_fields', $submission['fields'], $submission['form_id']);
        ...
        }
    }

    Thanks for your support.

    • This reply was modified 8 years, 11 months ago by jasongreen.

    He ,

    Plugin is brilliant thanks for lovely plugin.

    Can we have “set_columns” filter , i want show more columns in submission list.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Please add filters’ is closed to new replies.