Advertisements

akismet_recheck_button

Definition:
function akismet_recheck_button( $page ) {}

Parameters

  • $page

Source code

	function akismet_recheck_button( $page ) {

		global $submenu;

		if ( isset( $submenu['edit-comments.php'] ) )

			$link = 'edit-comments.php';

		else

			$link = 'edit.php';

		$button = "<a href='$link?page=akismet-admin&amp;recheckqueue=true&amp;noheader=true' style='display: block; width: 100px; position: absolute; right: 7%; padding: 5px; font-size: 14px; text-decoration: underline; background: #fff; border: 1px solid #ccc;'>" . __('Recheck Queue for Spam') . "</a>";

		$page = str_replace( '<div class="wrap">', '<div class="wrap">' . $button, $page );

		return $page;

	}

469

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: