File: /var/www/html/wpwisesolutions/wp-content/themes/pofo-child/functions.php
<?php
/**
*
* [Parent Theme] child theme functions and definitions
*
* @package [Parent Theme]
* @author Themezaa <info@themezaa.com>
*
*/
if ( ! function_exists( 'pofo_child_style' ) ) :
function pofo_child_style() {
wp_enqueue_style( 'pofo-parent-style', get_template_directory_uri(). '/style.css' );
}
endif;
add_action( 'wp_enqueue_scripts', 'pofo_child_style', 11 );
// Disable /users rest routes
add_filter('rest_endpoints', function( $endpoints ) {
if ( isset( $endpoints['/wp/v2/users'] ) ) {
unset( $endpoints['/wp/v2/users'] );
}
if ( isset( $endpoints['/wp/v2/users/(?P<id>[\d]+)'] ) ) {
unset( $endpoints['/wp/v2/users/(?P<id>[\d]+)'] );
}
return $endpoints;
});