Archive by Author

wp_set_current_user

Changes the current user by ID or name.Set $id to null and specify a name if you do not know a user’s ID.

4103

Continue reading

wp_set_comment_status

Sets the status of a comment.The ‘wp_set_comment_status’ action is called after the comment is handled and will only be called, if the comment status is either ‘hold’, ‘approve’, or ‘spam’. If the comment status is not in the list, then false is returned and if the status is ‘delete’, then the comment is deleted without calling the action.

4101

Continue reading

wp_set_auth_cookie

Sets the authentication cookies based User ID.The $remember parameter increases the time that the cookie will be kept. The default the cookie is kept without remembering is two days. When $remember is set, the cookies will be kept for 14 days or two weeks.

4099

Continue reading