| 开发者 |
intoxstudio
devinstitute |
|---|---|
| 更新时间 | 2024年7月28日 15:14 |
| PHP版本: | 5.6 及以上 |
| WordPress版本: | 6.6 |
| 版权: | GPLv3 |
/sectors/<sector-name>.php/sector-<sector-name>.phpis_sector(string $sector):boolean
Get all sectors for current context:
get_current_sectors():array
Hooks
Sectors extends all WordPress Actions and Filters by adding a scope. This means you can add a callback to an action and make sure it's only executed in a given context:
`add_sector_action(string $sector, string $tag, callable $function, int $priority = 10, int $accepted_args = 1 )
add_sector_filter(string $sector, string $tag, callable $function, int $priority = 10, int $accepted_args = 1 )`
/wp-content/plugins/ directory or install the plugin through Plugins in the Admin DashboardPlugins in the Admin Dashboard