Enable WordPress WP_DEBUG’, true,false using API?

  debugging, php, wordpress, wordpress-rest-api

I am trying to build a site which can manage my wordpress site. I am looking into a feature where with a click on button I should be able to enable wordpress debug flags like
define( ‘WP_DEBUG_LOG’, true ); or define( ‘WP_DEBUG_LOG’, False ); I am looking if there is a way I can leverage REST API to enable this feature?

Source: Ask PHP

LEAVE A COMMENT