Warning: This function has been deprecated. Use get_posts() instead.

get_others_pending() WordPress Function

The get_others_pending() WordPress function allows you to view other users who have pending posts on your blog. This is useful if you want to see what content is waiting to be published, or if you want to moderate comments before they are made public.

get_others_pending( int $user_id ) #

Retrieve pending review posts from other users.


Description

Top ↑

See also


Top ↑

Parameters

$user_id

(int)(Required)User ID.


Top ↑

Return

(array) List of posts with pending review post type from other users.


Top ↑

Source

File: wp-admin/includes/deprecated.php

function get_others_pending($user_id) {
	_deprecated_function( __FUNCTION__, '3.1.0' );

	return get_others_unpublished_posts($user_id, 'pending');
}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More