keesiemeijer / admin-annoy

Give yourself, or a "friend", an annoying WordPpress dashboard experience.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin Annoy

Version: 1.0 Requires at least: 4.0
Tested up to: 4.8

A prank WordPress plugin to give yourself, or a "friend", a very annoying WordPress dashboard experience.

100% annoyance demo page

Activate the plugin and go to any other admin page and experience the frustration (or joy) this plugin will bring you.

To deactivate this plugin go to this admin url /wp-admin/plugins.php and deactivate it.

Level of Annoyance

Set the level of annoyance with the admin_annoy_annoyance_percentage filter. Use a number between 0 or 100. Default is 60.

Example of full annoyance

add_filter('admin_annoy_annoyance_percentage', 'full_annoyance' );

function full_annoyance( $percentage ){
	return 100;
}

Set a date for the annoyance

Set the date for when to annoy with the admin_annoy_date filter. Default none.

Example of april first.

add_filter('admin_annoy_date', 'april_fools' );

function april_fools( $percentage ){

	// Return the date in this format 'YYYY-MM-DD'
	return '2015-04-01';
}

Only annoy a specific user

Set the user id to annoy with the admin_annoy_user_id filter. Default none.

Example to only annoy a user with id 23.

add_filter('admin_annoy_user_id', 'annoy_you_know_who' );

function annoy_you_know_who( $user ){

	// Annoy user with user ID 23.
	return 23;
}

About

Give yourself, or a "friend", an annoying WordPpress dashboard experience.

License:GNU General Public License v2.0


Languages

Language:JavaScript 68.6%Language:PHP 31.4%