wordpress-progressive-web-apps icon indicating copy to clipboard operation
wordpress-progressive-web-apps copied to clipboard

(Temporary) Enabling comments for the app

Open anghelalexandra opened this issue 7 years ago • 0 comments

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

anghelalexandra avatar Aug 02 '18 08:08 anghelalexandra