Settings::filter_url( string $url )
When TEC is activated, the Events top level menu item in the dashboard needs the post_type appended to it
Contents
Parameters
- $url
-
(string) (Required) Settings URL to filter
Return
(string)
Source
File: src/Tribe/Admin/Settings.php
public function filter_url( $url ): string {
if ( is_network_admin() ) {
return $url;
}
return add_query_arg( [ 'post_type' => Plugin::POSTTYPE ], $url );
}
Changelog
| Version | Description |
|---|---|
| 6.0.5 | Moved to Settings class. |
| 4.3.5 | Introduced. |