You appear to be a bot. Output may be restricted
Description
Perform an Akismet spam check against the submitted formWe don't know what fields are in the form so we have to ask the post type to respond with the fields that they want to set. The filter is targetted at the specific $post_type
Usage
bw_spam_check( $post_type, $validated );
Parameters
- $post_type
- ( mixed ) required –
- $validated
- ( mixed ) required –
Returns
voidSource
File name: oik-fields/shortcodes/oik-new.phpLines:
1 to 8 of 8
function bw_spam_check( $post_type, $validated ) { $fields = $validated; $fields['comment_type'] = $post_type; $fields = apply_filters( "oik_set_spam_fields_{$post_type}", $fields ); bw_trace2( $fields, "fields", true, BW_TRACE_DEBUG ); $send = bw_akismet_check( $fields ); return( $send ); }View on GitHub