The permission_callback parameter in register_rest_route allows you to define custom permission checks for your WordPress REST API endpoints. I’ve listed down 10 sample use-cases: 1. Open Access Allowing anyone to access the endpoint, effectively making it public. 2. Authenticated Users Only Only allowing authenticated users to access the endpoint. 3. Admin Users Only Restricting access Continue reading “10 sample use-cases of permission_callback in register_rest_route WordPress Plugin”
Author Archives: juzhax
Using OVH S3 Object Storage on Discourse that using Docker in Centos 7
Checking TTFB using console in Mac or Linux
TTFB stands for “Time To First Byte,” which refers to the amount of time it takes for a web server to start sending data back to a user’s browser after a request is made. This includes the time it takes for the server to receive the request, process it, and generate a response. TTFB is Continue reading “Checking TTFB using console in Mac or Linux”
Rename *.jpeg.png to *.png in linux
Converts All JPG files to PNG files in Linux
Remove comma before submit to DataTables
##
Solved Datatables CSV import using join table
Use of undefined constant STDOUT – assumed ‘STDOUT’ (this will throw an Error in a future version of PHP)
How to export mysql or mariadb data from docker
Fixing upstream sent too big header while reading response header from upstream in Bitnami WordPress
Fixing upstream sent too big header while reading response header from upstream in Bitnami WordPress
