Home / APIs / WP_User_Search::__construct() – PHP5 Constructor – Sets up the object properties.

You appear to be a bot. Output may be restricted

Description

PHP5 Constructor – Sets up the object properties.

Usage

$WP_User_Search = WP_User_Search::__construct( $search_term, $page, $role );

Parameters

$search_term
( string ) optional – Search terms string.
$page
( int ) optional – Optional. Page ID.
$role
( string ) optional – Role name.

Returns

WP_User_Search

Source

File name: wordpress/wp-admin/includes/deprecated.php
Lines: 1 to 12 of 12

  function __construct( $search_term = '', $page = '', $role = '' ) {
    _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' );

    $this->search_term = wp_unslash( $search_term );
    $this->raw_page = ( '' == $page ) ? false : (int) $page;
    $this->page = (int) ( '' == $page ) ? 1 : $page;
    $this->role = $role;

    $this->prepare_query();
    $this->query();
    $this->do_paging();
  }
 

 View on GitHub View on Trac

Published: 10th March 2017 | Last updated: 10th March 2017

Information

Function name: WP_User_Search::__construct
Class ref: WP_User_Search
Plugin ref: WordPress
Version: 5.0.3
Sourcefile: wp-admin/includes/deprecated.php
File ref: wp-admin/includes/deprecated.php
Deprecated?: No
API Letters: S,U,W

  • Plugins
  • Themes
  • Blocks
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WP-a2z WordPress core a2z
WordPress core only

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins