deleteTransientWithUser() public static method

Delete a user transient. Return TRUE if successful, FALSE otherwise
Since: 1.5.1
public static deleteTransientWithUser ( string $transient, integer $user_id = null ) : boolean
$transient string Transient name. Expected to not be SQL-escaped.
$user_id integer Optional. User ID. If null the current user id is used instead
return boolean
Esempio n. 1
0
 /**
  * Delete a user transient.
  *
  * @brief      Delete
  * @since      1.1.0
  * @deprecated since 1.5.1 - Use WPDKUser::deleteTransientWithUser() instead
  *
  * @uses       do_action() Calls 'delete_user_transient_$transient' hook before transient is deleted.
  * @uses       do_action() Calls 'deleted_user_transient' hook on success.
  *
  * @param string $transient Transient name. Expected to not be SQL-escaped.
  * @param int    $user_id   Optional. User ID. If null the current user id is used instead
  *
  * @return bool true if successful, false otherwise
  */
 function wpdk_delete_user_transient($transient, $user_id = null)
 {
     _deprecated_function(__CLASS__ . '::' . __FUNCTION__, '1.5.1', 'WPDKUser::deleteTransientWithUser()');
     return WPDKUser::deleteTransientWithUser($transient, $user_id);
 }