Pages::get_capability( string $capability = 'manage_options' )
Get the capability.
Parameters
- $capability
-
(string) (Optional) The capability required for a TEC page to be displayed to the user.
Default value: 'manage_options'
Return
(string) The capability required for a TEC page to be displayed to the user.
Source
File: src/Tribe/Admin/Pages.php
public static function get_capability( $capability = 'manage_options' ) { /** * Filters the default capability for Tribe admin pages. * * @param string $capability The capability required for a TEC page to be displayed to the user. * * @todo: We'll need to deprecate this one in favor of the one below. */ $capability = apply_filters( 'tribe_common_event_page_capability', $capability ); /** * Filters the default capability for TEC admin pages. * * @param string $capability The capability required for a TEC page to be displayed to the user. * * @since 4.15.0 */ $capability = apply_filters( 'tec_admin_pages_capability', $capability ); return $capability; }
Changelog
Version | Description |
---|---|
4.15.0 | Introduced. |