wordpress-progressive-web-apps
wordpress-progressive-web-apps copied to clipboard
(Temporary) Enabling comments for the app
This is a temporary solution for enabling comments until a custom endpoint is implemented.
From the progressive-web-apps.php file, search for the following code:
// Uncomment the line below to enable comments
// add_filter( 'rest_allow_anonymous_comments', '__return_true' );
WARNING: This filter will enable comments for all the REST API, not just for the mobile PWA.
From the frontend/sections/template.php file, search for the following code:
// Set commentsEnabled to 1 for enabling comments
'commentsEnabled' => 0