⚡ Target:
functions.php
🔒 Tested: WP 6.6+ / PHP 8.2+
💻 Lang: PHP
Restricts public /wp-json/ user and data endpoints to authenticated users and logged-in administrators only.