[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

bw_build_akismet_query_string() – Return the query_string to pass to Akismet given the fields in $fields and $_SERVER

You appear to be a bot. Output may be restricted

Description

Return the query_string to pass to Akismet given the fields in $fields and $_SERVER

Usage

bw_build_akismet_query_string( $fields );

Parameters

$fields
( array ) required – array of fields

Returns

void

Source

File name: oik/shortcodes/oik-contact-form.php
Lines:
1 to 18 of 18
function bw_build_akismet_query_string( $fields ) {
  bw_trace2();
  //bw_backtrace();
  $form = $_SERVER;
  $form['blog'] = get_option( 'home' );
  $form['user_ip'] = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] );
  $form['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
  $form['referrer'] = $_SERVER['HTTP_REFERER'];
  $form['permalink'] =  get_permalink();
  $form['comment_type'] = $fields['comment_type']; // 'oik-contact-form';
  $form['comment_author'] = bw_array_get( $fields, 'comment_author', null );
  $form['comment_author_email'] = bw_array_get( $fields, 'comment_author_email', null );
  $form['comment_author_url'] = bw_array_get( $fields, 'comment_author_url', null );
  $form['comment_content'] = bw_array_get( $fields, 'comment_content', null );  
  unset( $form['HTTP_COOKIE'] ); 
  $query_string = http_build_query( $form );
  return( $query_string );
}
 
 View on GitHub View on Trac

Published: February 2, 2018 | Last updated: February 2, 2018

Information

Function name: bw_build_akismet_query_string
Plugin ref: oik – oik information kit
Version: 4.10.0
Sourcefile: shortcodes/oik-contact-form.php
File ref: shortcodes/oik-contact-form.php
Deprecated?: No
API Letters: A,B,Q,S

Recent plugin updates

oik-bwtrace v3.4.5 Update to oik-bwtrace v3.4.5 for support for PHP 8.2 and PHP 8.3 ...
oik-popup v0.4.1 Update to oik-popup v0.4.1 for support for PHP 8.3 ...
oik-block v0.3.2 Update to oik-block v0.3.2 for support for PHP 8.3 ...
DIY-oik v1.5.1 Update to DIY-oik v1.5.1 for support for PHP 8.3 ...
sb-post-edit-block v0.3.2 Update to sb-post-edit-block v0.3.2 for support for PHP 8.1, 8.2 and 8.3 ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: herb@bobbingwide.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2023. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins

WordPress version: 6.4.2

Gutenberg version: 17.2.0

PHP version: 7.4.33