Action hook 'comment_remove_author_url'

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

View Source

comment_remove_author_url

Action Hook
Description
Add help to the Akismet page

Hook Information

File Location wp-content/plugins/akismet/class.akismet-admin.php View on GitHub
Hook Type Action
Line Number 579

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into comment_remove_author_url
add_action('comment_remove_author_url', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-content/plugins/akismet/class.akismet-admin.php:579 - How this hook is used in WordPress core
<?php
 574  		if ( ! empty( $_POST['id'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
 575  			$comment_id = intval( $_POST['id'] );
 576  			$comment    = get_comment( $comment_id, ARRAY_A );
 577  			if ( $comment && current_user_can( 'edit_comment', $comment['comment_ID'] ) ) {
 578  				$comment['comment_author_url'] = '';
 579  				do_action( 'comment_remove_author_url' );
 580  				print( wp_update_comment( $comment ) );
 581  				die();
 582  			}
 583  		}
 584  	}

PHP Documentation

<?php
/**
	 * Add help to the Akismet page
	 *
	 * @return false if not the Akismet page
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-content/plugins/akismet/class.akismet-admin.php
Related Hooks

Related hooks will be displayed here in future updates.