$queried_object WP_User(7)
  • contents
  • Static class properties (1)
  • Available methods (25)
  • public data -> stdClass(10)
    public ID -> string(1) "3"
    public user_login -> string(6) "alpine"
    public user_pass -> string(34) "$P$BA7S2NRl1Z0GJdA8XQYfMxEtWQN2wS/"
    public user_nicename -> string(6) "alpine"
    public user_email -> string(26) "[email protected]"
    public user_url -> string(0) ""
    public user_registered -> string(19) "2012-02-14 03:44:13"
    public user_activation_key -> string(0) ""
    public user_status -> string(1) "0"
    public display_name -> string(6) "alpine"
    public ID -> integer3
    public caps -> array(1)
    'administrator' => string(1) "1"
    public cap_key -> string(15) "wp_capabilities"
    public roles -> array(1)
    string(13) "administrator"
    public allcaps -> array(73)
    'switch_themes' => boolTRUE
    'edit_themes' => boolTRUE
    'activate_plugins' => boolTRUE
    'edit_plugins' => boolTRUE
    'edit_users' => boolTRUE
    'edit_files' => boolTRUE
    'manage_options' => boolTRUE
    'moderate_comments' => boolTRUE
    'manage_categories' => boolTRUE
    'manage_links' => boolTRUE
    'upload_files' => boolTRUE
    'import' => boolTRUE
    'unfiltered_html' => boolTRUE
    'edit_posts' => boolTRUE
    'edit_others_posts' => boolTRUE
    'edit_published_posts' => boolTRUE
    'publish_posts' => boolTRUE
    'edit_pages' => boolTRUE
    'read' => boolTRUE
    'level_10' => boolTRUE
    'level_9' => boolTRUE
    'level_8' => boolTRUE
    'level_7' => boolTRUE
    'level_6' => boolTRUE
    'level_5' => boolTRUE
    'level_4' => boolTRUE
    'level_3' => boolTRUE
    'level_2' => boolTRUE
    'level_1' => boolTRUE
    'level_0' => boolTRUE
    'edit_others_pages' => boolTRUE
    'edit_published_pages' => boolTRUE
    'publish_pages' => boolTRUE
    'delete_pages' => boolTRUE
    'delete_others_pages' => boolTRUE
    'delete_published_pages' => boolTRUE
    'delete_posts' => boolTRUE
    'delete_others_posts' => boolTRUE
    'delete_published_posts' => boolTRUE
    'delete_private_posts' => boolTRUE
    'edit_private_posts' => boolTRUE
    'read_private_posts' => boolTRUE
    'delete_private_pages' => boolTRUE
    'edit_private_pages' => boolTRUE
    'read_private_pages' => boolTRUE
    'delete_users' => boolTRUE
    'create_users' => boolTRUE
    'unfiltered_upload' => boolTRUE
    'edit_dashboard' => boolTRUE
    'update_plugins' => boolTRUE
    'delete_plugins' => boolTRUE
    'install_plugins' => boolTRUE
    'update_themes' => boolTRUE
    'install_themes' => boolTRUE
    'update_core' => boolTRUE
    'list_users' => boolTRUE
    'remove_users' => boolTRUE
    'promote_users' => boolTRUE
    'edit_theme_options' => boolTRUE
    'delete_themes' => boolTRUE
    'export' => boolTRUE
    'wpseo_bulk_edit' => boolTRUE
    'vc_access_rules_post_types' => boolTRUE
    'vc_access_rules_backend_editor' => boolTRUE
    'vc_access_rules_frontend_editor' => boolFALSE
    'vc_access_rules_post_settings' => boolTRUE
    'vc_access_rules_settings' => boolTRUE
    'vc_access_rules_templates' => boolTRUE
    'vc_access_rules_shortcodes' => boolTRUE
    'vc_access_rules_grid_builder' => boolTRUE
    'vc_access_rules_presets' => boolTRUE
    'copy_posts' => boolTRUE
    'administrator' => string(1) "1"
    public filter -> NULL
  • private $back_compat_keys :: array(6)
    'user_firstname' => string(10) "first_name"
    'user_lastname' => string(9) "last_name"
    'user_description' => string(11) "description"
    'user_level' => string(13) "wp_user_level"
    'wp_usersettings' => string(16) "wp_user-settings"
    'wp_usersettingstime' => string(21) "wp_user-settings-time"
  • public static get_data_by($field, $value) -> object|false Raw user object
    Return only the main user fields
    
    @since 3.3.0
    @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter.
    
    @static
    
    @global wpdb $wpdb WordPress database abstraction object.
    
    @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.
    @param string|int $value The field value
    @return object|false Raw user object
    
    Defined in .../wp-includes/class-wp-user.php:186
    public __call($name, $arguments) -> mixed|false Return value of the callback, false otherwise.
    Makes private/protected methods readable for backward compatibility.
    
    @since 4.3.0
    @access public
    
    @param callable $name      Method to call.
    @param array    $arguments Arguments to pass when calling.
    @return mixed|false Return value of the callback, false otherwise.
    
    Defined in .../wp-includes/class-wp-user.php:256
    public __construct($id = 0, $name = "", $blog_id = "")
    Constructor.
    
    Retrieves the userdata and passes it to WP_User::init().
    
    @since 2.0.0
    @access public
    
    @global wpdb $wpdb WordPress database abstraction object.
    
    @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB.
    @param string $name Optional. User's username
    @param int $blog_id Optional Site ID, defaults to current site.
    
    Defined in .../wp-includes/class-wp-user.php:120
    public __get($key) -> mixed Value of the given user meta key (if set). If `$key` is 'id', the user ID.
    Magic method for accessing custom fields.
    
    @since 3.3.0
    @access public
    
    @param string $key User meta key to retrieve.
    @return mixed Value of the given user meta key (if set). If `$key` is 'id', the user ID.
    
    Defined in .../wp-includes/class-wp-user.php:302
    public __isset($key) -> bool Whether the given user meta key is set.
    Magic method for checking the existence of a certain custom field.
    
    @since 3.3.0
    @access public
    
    @param string $key User meta key to check if set.
    @return bool Whether the given user meta key is set.
    
    Defined in .../wp-includes/class-wp-user.php:272
    public __set($key, $value)
    Magic method for setting custom user fields.
    
    This method does not update custom fields in the database. It only stores
    the value on the WP_User instance.
    
    @since 3.3.0
    @access public
    
    @param string $key   User meta key.
    @param mixed  $value User meta value.
    
    Defined in .../wp-includes/class-wp-user.php:341
    public __unset($key)
    Magic method for unsetting a certain custom field.
    
    @since 4.4.0
    @access public
    
    @param string $key User meta key to unset.
    
    Defined in .../wp-includes/class-wp-user.php:365
    public add_cap($cap, $grant = true)
    Add capability and grant or deny access to capability.
    
    @since 2.0.0
    @access public
    
    @param string $cap Capability name.
    @param bool $grant Whether to grant capability to user.
    
    Defined in .../wp-includes/class-wp-user.php:654
    public add_role($role)
    Add role to user.
    
    Updates the user's meta data option with capabilities and roles.
    
    @since 2.0.0
    @access public
    
    @param string $role Role name.
    
    Defined in .../wp-includes/class-wp-user.php:508
    public exists() -> bool True if user exists in the database, false if not.
    Determine whether the user exists in the database.
    
    @since 3.4.0
    @access public
    
    @return bool True if user exists in the database, false if not.
    
    Defined in .../wp-includes/class-wp-user.php:393
    public for_blog($blog_id = "")
    Set the site to operate on. Defaults to the current site.
    
    @since 3.0.0
    
    @global wpdb $wpdb WordPress database abstraction object.
    
    @param int $blog_id Optional. Site ID, defaults to current site.
    
    Defined in .../wp-includes/class-wp-user.php:781
    public get($key) -> mixed
    Retrieve the value of a property or meta key.
    
    Retrieves from the users and usermeta table.
    
    @since 3.3.0
    
    @param string $key Property
    @return mixed
    
    Defined in .../wp-includes/class-wp-user.php:407
    public get_role_caps() -> array List of all capabilities for the user.
    Retrieve all of the role capabilities and merge with individual capabilities.
    
    All of the capabilities of the roles the user belongs to are merged with
    the users individual roles. This also means that the user can be denied
    specific roles that their role might have, but the specific user isn't
    granted permission to.
    
    @since 2.0.0
    @access public
    
    @return array List of all capabilities for the user.
    
    Defined in .../wp-includes/class-wp-user.php:480
    public has_cap($cap) -> bool Whether the current user has the given capability. If `$cap` is a meta cap and `$object_id` is
    Whether user has capability or role name.
    
    While checking against particular roles in place of a capability is supported
    in part, this practice is discouraged as it may produce unreliable results.
    
    @since 2.0.0
    @access public
    
    @see map_meta_cap()
    
    @param string $cap           Capability name.
    @param int    $object_id,... Optional. ID of the specific object to check against if `$cap` is a "meta" cap.
    "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used
    by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts',
    'edit_others_posts', etc. The parameter is accessed via func_get_args() and passed
    to map_meta_cap().
    @return bool Whether the current user has the given capability. If `$cap` is a meta cap and `$object_id` is
    passed, whether the current user has the given meta capability for the given object.
    
    Defined in .../wp-includes/class-wp-user.php:715
    public has_prop($key) -> bool
    Determine whether a property or meta key is set
    
    Consults the users and usermeta tables.
    
    @since 3.3.0
    
    @param string $key Property
    @return bool
    
    Defined in .../wp-includes/class-wp-user.php:421
    public init($data, $blog_id = "")
    Sets up object properties, including capabilities.
    
    @param object $data    User DB row object.
    @param int    $blog_id Optional. The site ID to initialize for.
    
    Defined in .../wp-includes/class-wp-user.php:165
    public level_reduction($max, $item) -> int Max Level.
    Choose the maximum level the user has.
    
    Will compare the level from the $item parameter against the $max
    parameter. If the item is incorrect, then just the $max parameter value
    will be returned.
    
    Used to get the max level based on the capabilities the user has. This
    is also based on roles, so if the user is assigned the Administrator role
    then the capability 'level_10' will exist and the user will get that
    value.
    
    @since 2.0.0
    @access public
    
    @param int $max Max level of user.
    @param string $item Level capability name.
    @return int Max Level.
    
    Defined in .../wp-includes/class-wp-user.php:618
    public remove_all_caps()
    Remove all of the capabilities of the user.
    
    @since 2.1.0
    @access public
    
    @global wpdb $wpdb WordPress database abstraction object.
    
    Defined in .../wp-includes/class-wp-user.php:687
    public remove_cap($cap)
    Remove capability from user.
    
    @since 2.0.0
    @access public
    
    @param string $cap Capability name.
    
    Defined in .../wp-includes/class-wp-user.php:669
    public remove_role($role)
    Remove role from user.
    
    @since 2.0.0
    @access public
    
    @param string $role Role name.
    
    Defined in .../wp-includes/class-wp-user.php:537
    public set_role($role)
    Set the role of the user.
    
    This will remove the previous roles of the user and assign the user the
    new one. You can set the role to an empty string and it will remove all
    of the roles from the user.
    
    @since 2.0.0
    @access public
    
    @param string $role Role name.
    
    Defined in .../wp-includes/class-wp-user.php:568
    public to_array() -> array Array representation.
    Return an array representation.
    
    @since 3.5.0
    
    @return array Array representation.
    
    Defined in .../wp-includes/class-wp-user.php:432
    public translate_level_to_cap($level) -> string
    Convert numeric level to level capability name.
    
    Prepends 'level_' to level number.
    
    @since 2.0.0
    @access public
    
    @param int $level Level number, 1 to 10.
    @return string
    
    Defined in .../wp-includes/class-wp-user.php:768
    public update_user_level_from_caps()
    Update the maximum user level for the user.
    
    Updates the 'user_level' user metadata (includes prefix that is the
    database table prefix) with the maximum user level. Gets the value from
    the all of the capabilities that the user has.
    
    @since 2.0.0
    @access public
    
    @global wpdb $wpdb WordPress database abstraction object.
    
    Defined in .../wp-includes/class-wp-user.php:639
    protected _init_caps($cap_key = "")
    Set up capability object properties.
    
    Will set the value for the 'cap_key' property to current database table
    prefix, followed by 'capabilities'. Will then check to see if the
    property matching the 'cap_key' exists and is an array. If so, it will be
    used.
    
    @access protected
    @since 2.1.0
    
    @global wpdb $wpdb WordPress database abstraction object.
    
    @param string $cap_key Optional capability key
    
    Defined in .../wp-includes/class-wp-user.php:451
Called from .../themes/bendtour17/archive.php:36
  1. .../wp-includes/template-loader.php:74
  2. .../wp-blog-header.php:19
  3. .../index.php:17

Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find one of the following templates: "tease-post.twig", "tease.twig" in "archive.twig.html" at line 19.' in /nas/content/live/bendtour17/wp-content/themes/bendtour17/vendor/twig/twig/lib/Twig/Environment.php:576 Stack trace: #0 /nas/content/live/bendtour17/wp-content/themes/bendtour17/vendor/twig/twig/lib/Twig/Template.php(355): Twig_Environment->resolveTemplate(Array) #1 /nas/content/live/bendtour17/wp-content/themes/bendtour17/vendor/twig/twig/lib/Twig/Environment.php(462) : eval()'d code(79): Twig_Template->loadTemplate(Array, 'archive.twig.ht...', 19) #2 /nas/content/live/bendtour17/wp-content/themes/bendtour17/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_dab341a719775e9efd27a950d5fb9c65a2ea895598d944a9a0046d0b2cad3b79->doDisplay(Array, Array) #3 /nas/content/live/bendtour17/wp-content/themes/bendtour17/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Template->displayWithErrorHandling(Array, Array) #4 /nas/content/live/bendtou in /nas/content/live/bendtour17/wp-content/themes/bendtour17/vendor/twig/twig/lib/Twig/Environment.php on line 576