Skip to content

expire_users_expired

Ben Huson edited this page Jun 24, 2013 · 1 revision

The action is triggered when a user expires.

It can be used to trigger events - for example you could use this hook to automatically unpublish a post or change a user's information. It passes an Expire_User object as a parameter.

<?php
function my_expire_users_expired( $user ) {
	/*
	$user is an instance of the Expire_User object
	The user's ID is $user->user_id
	*/
}
add_action( 'expire_users_expired', 'my_expire_users_expired' );
?>

Clone this wiki locally