[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-content/plugins/akismet/ -> class.akismet.php (summary)

(no description)

File Size: 1496 lines (58 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Akismet:: (55 methods):

Class: Akismet  - X-Ref

init()   X-Ref
No description

init_hooks()   X-Ref
Initializes WordPress hooks

get_api_key()   X-Ref
No description

check_key_status( $key, $ip = null )   X-Ref
No description

verify_key( $key, $ip = null )   X-Ref
No description

deactivate_key( $key )   X-Ref
No description

add_to_jetpack_options_whitelist( $options )   X-Ref
Add the akismet option to the Jetpack options management whitelist.

param: array $options The list of whitelisted option names.
return: array The updated whitelist

updated_option( $old_value, $value )   X-Ref
When the akismet option is updated, run the registration call.

This should only be run when the option is updated from the Jetpack/WP.com
API call, and only if the new key is different than the old key.

param: mixed  $old_value   The old option value.
param: mixed  $value       The new option value.

added_option( $option_name, $value )   X-Ref
Treat the creation of an API key the same as updating the API key to a new value.

param: mixed  $option_name   Will always be "wordpress_api_key", until something else hooks in here.
param: mixed  $value         The option value.

rest_auto_check_comment( $commentdata )   X-Ref
No description

auto_check_comment( $commentdata )   X-Ref
No description

get_last_comment()   X-Ref
No description

set_last_comment( $comment )   X-Ref
No description

auto_check_update_meta( $id, $comment )   X-Ref
No description

delete_old_comments()   X-Ref
No description

delete_old_comments_meta()   X-Ref
No description

delete_orphaned_commentmeta()   X-Ref
No description

get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url )   X-Ref
No description

get_comment_history( $comment_id )   X-Ref
No description

update_comment_history( $comment_id, $message, $event=null, $meta=null )   X-Ref
Log an event for a given comment, storing it in comment_meta.

param: int $comment_id The ID of the relevant comment.
param: string $message The string description of the event. No longer used.
param: string $event The event code.
param: array $meta Metadata about the history entry. e.g., the user that reported or changed the status of a given comment.

check_db_comment( $id, $recheck_reason = 'recheck_queue' )   X-Ref
No description

recheck_comment( $id, $recheck_reason = 'recheck_queue' )   X-Ref
No description

transition_comment_status( $new_status, $old_status, $comment )   X-Ref
No description

submit_spam_comment( $comment_id )   X-Ref
No description

submit_nonspam_comment( $comment_id )   X-Ref
No description

cron_recheck()   X-Ref
No description

fix_scheduled_recheck()   X-Ref
No description

add_comment_nonce( $post_id )   X-Ref
No description

is_test_mode()   X-Ref
No description

allow_discard()   X-Ref
No description

get_ip_address()   X-Ref
No description

comments_match( $comment1, $comment2 )   X-Ref
Do these two comments, without checking the comment_ID, "match"?

param: mixed $comment1 A comment object or array.
param: mixed $comment2 A comment object or array.
return: bool Whether the two comments should be treated as the same comment.

matches_last_comment( $comment )   X-Ref
No description

get_user_agent()   X-Ref
No description

get_referer()   X-Ref
No description

get_user_roles( $user_id )   X-Ref
No description

last_comment_status( $approved, $comment )   X-Ref
No description

disable_moderation_emails_if_unreachable( $emails, $comment_id )   X-Ref
If Akismet is temporarily unreachable, we don't want to "spam" the blogger with
moderation emails for comments that will be automatically cleared or spammed on
the next retry.

For comments that will be rechecked later, empty the list of email addresses that
the moderation email would be sent to.

param: array $emails An array of email addresses that the moderation email will be sent to.
param: int $comment_id The ID of the relevant comment.
return: array An array of email addresses that the moderation email will be sent to.

_cmp_time( $a, $b )   X-Ref
No description

_get_microtime()   X-Ref
No description

http_post( $request, $path, $ip=null )   X-Ref
Make a POST request to the Akismet API.

param: string $request The body of the request.
param: string $path The path for the request.
param: string $ip The specific IP address to hit.
return: array A two-member array consisting of the headers and the response body, both empty in the case of a failure.

update_alert( $response )   X-Ref
No description

load_form_js()   X-Ref
No description

set_form_js_async( $tag, $handle, $src )   X-Ref
Mark form.js as async. Because nothing depends on it, it can run at any time
after it's loaded, and the browser won't have to wait for it to load to continue
parsing the rest of the page.

inject_ak_js( $fields )   X-Ref
No description

bail_on_activation( $message, $deactivate = true )   X-Ref
No description

view( $name, array $args = array()   X-Ref
No description

plugin_activation()   X-Ref
Attached to activate_{ plugin_basename( __FILES__ ) } by register_activation_hook()

plugin_deactivation( )   X-Ref
Removes all connection options

build_query( $args )   X-Ref
Essentially a copy of WP's build_query but one that doesn't expect pre-urlencoded values.

param: array $args An array of key => value pairs
return: string A string ready for use as a URL query string.

log( $akismet_debug )   X-Ref
Log debugging info to the error log.

Enabled when WP_DEBUG_LOG is enabled (and WP_DEBUG, since according to
core, "WP_DEBUG_DISPLAY and WP_DEBUG_LOG perform no function unless
WP_DEBUG is true), but can be disabled via the akismet_debug_log filter.

param: mixed $akismet_debug The data to log.

pre_check_pingback( $method )   X-Ref
No description

sanitize_comment_as_submitted( $meta_value )   X-Ref
Ensure that we are loading expected scalar values from akismet_as_submitted commentmeta.

param: mixed $meta_value
return: mixed

predefined_api_key()   X-Ref
No description

display_comment_form_privacy_notice()   X-Ref
Controls the display of a privacy related notice underneath the comment form using the `akismet_comment_form_privacy_notice` option and filter respectively.
Default is top not display the notice, leaving the choice to site admins, or integrators.

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1