Method |
Description |
|
__construct ( ) |
|
|
add_shortcode ( ) |
*
Adds our contact-form shortcode
The "child" contact-field shortcode is enabled as needed by the contact-form shortcode handler |
|
ajax_request ( ) |
|
|
akismet_submit ( string $as, array $form ) |
Submit a feedback as either spam or ham |
|
allow_feedback_rest_api_type ( $post_types ) |
Add to REST API post type whitelist |
|
daily_akismet_meta_cleanup ( ) |
Runs daily to clean up spam detection metadata after 15 days. Keeps your DB squeaky clean. |
|
download_feedback_as_csv ( ) |
download as a csv a contact form or all of them in a csv file |
|
esc_csv ( string $field ) : string |
Escape a string to be used in a CSV context |
|
export_form ( ) |
Prints the menu |
|
get_export_data_for_posts ( array $post_ids ) : array |
Prepares feedback post data for CSV export. |
|
get_ip_address ( ) |
|
|
get_parsed_field_contents_of_post ( integer $post_id ) : array |
Get parsed feedback post fields. |
|
get_post_content_for_csv_export ( integer $post_id ) : string |
Fetch post content for a post and extract just the comment. |
|
get_post_meta_for_csv_export ( integer $post_id ) : mixed |
Get _feedback_extra_fields field from post meta data. |
|
init ( ) |
|
|
insert_feedback_filter ( array $data, array $postarr ) : array |
Ensure the post author is always zero for contact-form feedbacks
Attached to wp_insert_post_data |
|
is_spam_akismet ( boolean $is_spam, array $form = [] ) : boolean | WP_Error |
Submit contact-form data to Akismet to check for spam. |
|
map_parsed_field_contents_of_post_to_field_names ( array $parsed_post_content ) : array |
Properly maps fields that are missing from the post meta data
to names, that are similar to those of the post meta. |
|
parse_fields_from_content ( $post_id ) |
|
|
prepare_for_akismet ( array $form ) : array |
Populate an array with all values necessary to submit a NEW contact-form feedback to Akismet. |
|
process_form_submission ( ) |
Handles all contact-form POST submissions |
|
replace_tokens_with_input ( string $subject, array $field_values ) : string |
Replaces tokens like {city} or {City} (case insensitive) with the value
of an input field of that name |
|
sanitize_value ( $value ) |
|
|
strip_tags ( mixed $data_with_tags ) : mixed |
Strips HTML tags from input. Output is NOT HTML safe. |
|
tokenize_label ( $label ) |
|
|
track_current_widget ( array $widget ) |
Tracks the widget currently being processed. |
|
unread_count ( object $screen ) |
Display the count of new feedback entries received. It's reset when user visits the Feedback screen. |
|
widget_atts ( string $text ) : string |
Adds a "widget" attribute to every contact-form embedded in a text widget. |
|
widget_shortcode_hack ( string $text ) : string |
For sites where text widgets are not processed for shortcodes, we add this hack to process just our shortcode
Attached to widget_text |
|