You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -161,8 +161,8 @@ public static function for( string $post_type ) {
161
161
* * Can be useful, in some cases, to run this method if not using API.
162
162
*
163
163
* **How to use this?**
164
-
* * Should be used with `restrict_manage_posts` action hook.
165
-
* * Run inside the hooked function to add filtration dropdown.
164
+
* * Hook with `admin_init` to parse query.
165
+
* * Hook with `restrict_manage_posts` to add filter.
166
166
*
167
167
* @param string $post_type **required** Post type key.
168
168
* @param string $key **required** Taxonomy/Post Meta key to use for adding filteration dropdown.
@@ -271,9 +271,8 @@ public function with_keys( string $post_type ) {
271
271
*
272
272
* @param string $post_type **required** Post type key.
273
273
* @param string $key Taxonomy/Post Meta key to use for adding filteration dropdown.
274
-
* @param bool $post_meta Whether param _$key_ belongs to `{$prefix}_postmeta` table or `{$prefix}_posts` table. Defaults to `true`. i.e. belongs to `{$prefix}_postmeta` table (the **$key** is a custom meta key of the **$post_type**).
0 commit comments