Filter hook 'akismet_view_arguments'

in WP Core File wp-content/plugins/akismet/class.akismet.php at line 1708

View Source

akismet_view_arguments

Filter Hook
Description
Ensure that any Akismet-added form fields are included in the comment-check call.

Hook Information

File Location wp-content/plugins/akismet/class.akismet.php View on GitHub
Hook Type Filter
Line Number 1708

Hook Parameters

Type Name Description
array $form No description available
array $data Some plugins will supply the POST data via the filter, since they don't read it directly from $_POST.

Usage Examples

Basic Usage
<?php
// Hook into akismet_view_arguments
add_filter('akismet_view_arguments', 'my_custom_filter', 10, 2);

function my_custom_filter($form, $data) {
    // Your custom filtering logic here
    return $form;
}

Source Code Context

wp-content/plugins/akismet/class.akismet.php:1708 - How this hook is used in WordPress core
<?php
1703  		}
1704  		exit;
1705  	}
1706  
1707  	public static function view( $name, array $args = array() ) {
1708  		$args = apply_filters( 'akismet_view_arguments', $args, $name );
1709  
1710  		foreach ( $args as $key => $val ) {
1711  			$$key = $val;
1712  		}
1713  

PHP Documentation

<?php
/**
	 * Ensure that any Akismet-added form fields are included in the comment-check call.
	 *
	 * @param array $form
	 * @param array $data Some plugins will supply the POST data via the filter, since they don't
	 *                    read it directly from $_POST.
	 * @return array $form
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-content/plugins/akismet/class.akismet.php
Related Hooks

Related hooks will be displayed here in future updates.