wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
rest_restrict_privacy_policy_page_setting_update › WordPress Function
Od7.2.0
Przestarzałyn/a
› rest_restrict_privacy_policy_page_setting_update ( $updated, $name )
| Parametry: (2) |
|
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: |
Prevents users without the `manage_privacy_options` capability from changing the privacy policy page through the REST API.
The settings endpoint only checksmanage_options. On multisite the
manage_privacy_options capability maps to manage_network, so a site
administrator can read the setting but must not change it, matching the
Settings > Privacy screen.