File "rest.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/core/modules/file-writing/rest.php
File size: 331 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
register_rest_route( 'ithemes-security/rpc', 'file-writing/get-config-rules', [
'callback' => function () {
return [
'server' => ITSEC_Lib_Config_File::get_server_config(),
'wp' => ITSEC_Lib_Config_File::get_wp_config(),
];
},
'permission_callback' => 'ITSEC_Core::current_user_can_manage',
] );