/** * Returns the registered key for the given widget type. * * @since 5.8.0 * * @param string $id_base Widget type ID. * @return string */ class must bes@@iH@Xȅ@@p|@Ӆ@5@@p@5@(6@s@xHv@0@6@06@@h6@v@@en. * * @sinceDxV/** * Returns the name of a navigation menu. * * @since 4.9.0 * * @param string $location Menu location identifier. * @return string Menu name. */DxV/** * Adds the "My Sites/[Site Name]" menu and all submenus. * * @since 3.1.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. */dmin_BarDxV/** * Adds edit comments link with awaiting moderation count bubble. * * @since 3.1.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. */DxV_/** * Adds appearance submenu items to the "Site Name" menu. * * @since 3.1.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. */ 2.8.0 DxV/** * Provides an update link if theme/plugin/core updates are available. * * @since 3.1.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. */V/** * Adds a link to exit recovery mode when Recovery Mode is active. * * @since 5.2.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. */xV/** * Hashes a plaintext application password. * * @since 6.8.0 * * @param string $password Plaintext password. * @return string Hashed password. */V0@nUP,?7‹nU`-pnUPp.4‹nU`p.@nU0/>X|@/** * Encapsulates the properties and methods related to a specific ability category. * * @since 6.9.0 * * @see WP_Ability_Categories_Registry */ce of thDxV/** * Retrieves the human-readable label for the ability category. * * @since 6.9.0 * * @return string The human-readable ability category label. */xV/** * Retrieves the metadata for the ability category. * * @since 6.9.0 * * @return array The metadata for the ability category. */veDxV_@5nUPRnUP|TnUP>xnU|@nU0>|@@@5nUPRnUP|TnUP>xnU|@nU0>@@@5nUPRnUP|TnUP>xnU|@nU0>@@@5nUPRnUP|TnUP>xnU|@nU0>X}@@/** * Encapsulates the properties and methods related to a specific ability in the registry. * * @since 6.9.0 * * @see WP_Abilities_Registry */ DxV@5nU>PRnUP|TnUP>xnU|@nU0>h@/** * Retrieves the human-readable label for the ability. * * @since 6.9.0 * * @return string The human-readable ability label. */ray. * @param aDxV/** * Retrieves the detailed description for the ability. * * @since 6.9.0 * * @return string The detailed description for the ability. */. */ public function __construct( $id_base, $name, $widget_options = array(), unction offset( $offset, $increment = false ); /** * Sets the order on the query. * * Mind that this implementation does not support a `by( 'order', 2 )` * filter to force more readable code. * * @since 4.7.19 * * @param string $order * * @return Tribe__Repository__Read_Interface */ public function order( $order = 'ASC' ); /** * Sets the order criteria results should be fetched by. * * Mind that this implementation does not support a `by( 'order_by', 'title' )` * filter to force more readable code. * * @since 4.7.19 * * @param string|array $order_by The post field, custom field or alias key to order posts by. * @param string $order The order direction; optional; shortcut for the `order` method; defaults * to `DESC`. * * @return Tribe__Repository__Read_Interface */ public function order_by( $order_by, $order = 'DESC' ); /** * Sets the fields that should be returned by the query. * * Mind that this implementation does not support a `by( 'fields', 'ids' )` * filter to force more readable code. * * @since 4.7.19 * * @param string $fields * * @return Tribe__Repository__Read_Interface */ public function fields( $fields ); /** * Sugar method to set the `post__in` argument. * * Successive calls will stack, not replace each one. * * @since 4.7.19 * * @param array|int $post_ids * * @return Tribe__Repository__Read_Interface */ public function in( $post_ids ); /** * Sugar method to set the `post__not_in` argument. * * Successive calls will stack, not replace each one. * * @since 4.7.19 * * @param array|int $post_ids * * @return Tribe__Repository__Read_Interface */ public function not_in( $post_ids ); /** * Sugar method to set the `post_parent__in` argument. * * Successive calls will stack, not replace each one. * * @since 4.7.19 * * @param array|int $post_id * * @return Tribe__Repository__Read_Interface */ public function parent( $post_id ); /** * Sugar method to set the `post_parent__in` argument. * * Successive calls will stack, not replace each one. * * @since 4.7.19 * * @param array $post_ids * * @return Tribe__Repository__Read_Interface */ public function parent_in( $post_ids ); /** * Sugar method to set the `post_parent__not_in` argument. * * Successive calls will stack, not replace each one. * * @since 4.7.19 * * @param array $post_ids * * @return Tribe__Repository__Read_Interface */ public function parent_not_in( $post_ids ); /** * Sugar method to set the `s` argument. * * Successive calls will replace the search string. * This is the default WordPress search, to search by title, * content or excerpt only use the `title`, `content`, `excerpt` filters. * * @param string $search The search string. * * @return Tribe__Repository__Read_Interface */ public function search( $search ); /** * Returns the number of posts found matching the query in the current page. * * While the `found` method will return the number of posts found * across all pages this method will only return the number of * posts found in the current page. * Differently from the `found` method this method will apply the * offset if set. * * @since 4.7.19 * * @return int */ public function count(); /** * Returns the first post of the page matching the current query. * * If, by default or because set with the `per_page` method, all * posts matching the query should be returned then this will be * the first post of all those matching the query. * * @since 4.7.19 * * @return WP_Post|mixed|null * * @see Tribe__Repository__Read_Interface::per_page() */ public function first(); /** * Returns the last post of the page matching the current query. * * If, by default or because set with the `per_page` method, all * posts matching the query should be returned then this will be * the last post of all those matching the query. * * @since 4.7.19 * * @return WP_Post|mixed|null * * @see Tribe__Repository__Read_Interface::per_page() */ public function last(); /** * Returns the nth post (1-based) of the page matching the current query. * * Being 1-based the second post can be fetched using `nth( 2 )`. * If, by default or because set with the `per_page` method, all * posts matching the query should be returned then this will be * the nth post of all those matching the query. * * @since 4.7.19 * * @param int $n * * @return WP_Post|mixed|null * * @see Tribe__Repository__Read_Interface::per_page() */ public function nth( $n ); /** * Returns the first n posts of the page matching the current query. * * If, by default or because set with the `per_page` method, all * posts matching the query should be returned then this method will * return the first n posts of all those matching the query. * * @since 4.7.19 * * @return array An array of posts matching the query. * * @see Tribe__Repository__Read_Interface::per_page() */ public function take( $n ); /** * Plucks a field from all results and returns it. * * This method will implicitly build and use a `WP_List_Util` instance on the return * value of a call to the `all` method. * * @since 4.9.5 * * @param string $field The field to pluck from each result. * * @return array An array of the plucked results. * * @see \wp_list_pluck() */ public function pluck( $field ); /** * Filters the results according to the specified criteria. * * This method will implicitly build and use a `WP_List_Util` instance on the return * value of a call to the `all` method. * * @since 4.9.5 * * @param array $args Optional. An array of key => value arguments to match * against each object. Default empty array. * @param string $operator Optional. The logical operation to perform. 'AND' means * all elements from the array must match. 'OR' means only * one element needs to match. 'NOT' means no elements may * match. Default 'AND'. * * @return array An array of the filtered results. * * @see \wp_list_filter() */ public function filter( $args = [], $operator = 'AND' ); /** * Sorts the results according to the specified criteria. * * This method will implicitly build and use a `WP_List_Util` instance on the return * value of a call to the `all` method. * * @since 4.9.5 * * @param string|array $orderby Optional. Either the field name to order by or an array * of multiple orderby fields as $orderby => $order. * @param string $order Optional. Either 'ASC' or 'DESC'. Only used if $orderby * is a string. * @param bool $preserve_keys Optional. Whether to preserve keys. Default false. * * @return array An array of the sorted results. * * @see \wp_list_sort() */ public function sort( $orderby = [], $order = 'ASC', $preserve_keys = false ); /** * Builds a collection on the result of the `all()` method call. * * @since 4.9.5 * * @return \Tribe__Utils__Post_Collection */ public function collect(); /** * Gets the ids of the posts matching the query. * * @since 4.1.3 * @since 5.2.0 Added the `$return_generator` and `$batch_size` parameters. * * @param bool $return_generator Whether to return a generator of post IDs instead of an array of post IDs. * @param int $batch_size The number of post IDs to fetch at a time when using a generator; ignored * if `$return_generator` is false. * * @return array|Generator An array of all the matching post IDs, or a generator of them * if `$return_generator` is true. */ public function get_ids( $return_generator = false, int $batch_size = 50 ); }