Tag Archives: codex

wp_set_object_terms

Create Term and Taxonomy Relationships.Relates an object (post, link etc) to a term and taxonomy type. Creates the term and taxonomy relationship if it doesn’t already exist. Creates a term if it doesn’t exist (using the slug).

4107

Continue reading

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

wp_schedule_single_event

Schedules a hook to run only once.Schedules a hook which will be executed once by the WordPress actions core at a time which you specify. The action will fire off when someone visits your WordPress site, if the schedule time has passed.

4089

Continue reading