filter
Filter: 'davo_allow_system_file_edit' - Allow developers to change whether the editing of .htaccess and robots.txt is allowed.
Parameters of davo_allow_system_file_edit Parameter Type Description $allowed bool Whether file editing is allowed.
add_filter Copyadd_filter ( 'davo_allow_system_file_edit' , 'my_filter_callback' , 10 , 1 );
/**
* @param bool $allowed
*/
function my_filter_callback ( $allowed ) {
// Change $allowed as needed, then return it.
return $allowed ;
}filter
Filter the Davo development mode.
Parameters of davo_debug_json_data Parameter Type Description $data array Allows filtering of the JSON data for debug purposes.
add_filter Copyadd_filter ( 'davo_debug_json_data' , 'my_filter_callback' , 10 , 1 );
/**
* @param array $data
*/
function my_filter_callback ( $data ) {
// Change $data as needed, then return it.
return $data ;
}filter
Filter the Davo development mode.
Parameters of davo_development_mode Parameter Type Description $development_mode bool Is Davo development mode active.
add_filter Copyadd_filter ( 'davo_development_mode' , 'my_filter_callback' , 10 , 1 );
/**
* @param bool $development_mode
*/
function my_filter_callback ( $development_mode ) {
// Change $development_mode as needed, then return it.
return $development_mode ;
}src/utils.php:953, and 1 more place