Usuarios

// Agregar el filtro para editar usuarios function limit_edit_users_for_asesor($allcaps, $cap, $args, $user) { // Solo modificar si el usuario tiene el rol ‘asesor’ if (isset($user->roles) && in_array(‘asesor’, $user->roles)) { // Obtener el ID del usuario a editar $user_id_to_edit = isset($args[2])…Continue reading

add_custom_javascript_review_sites

function add_custom_javascript() { // Check if we’re on a single post or page if(is_singular()) { // Get the post ID of the current post or page $post_id = get_the_ID(); // Check if the custom field ‘funnel’ exists and get its…Continue reading

Server Response Headers Contain Permissions-Policy

//Server Response Headers Contain Permissions-Policy header(“Permissions-Policy: accelerometer ‘none’ ; ambient-light-sensor ‘none’ ; autoplay ‘none’ ; camera ‘none’ ; encrypted-media ‘none’ ; fullscreen ‘none’ ; geolocation ‘none’ ; gyroscope ‘none’ ; magnetometer ‘none’ ; microphone ‘none’ ; midi ‘none’ ; payment…Continue reading

Disable REST API Links

remove_action( ‘xmlrpc_rsd_apis’, ‘rest_output_rsd’ ); remove_action( ‘wp_head’, ‘rest_output_link_wp_head’ ); remove_action( ‘template_redirect’, ‘rest_output_link_header’, 11 );Continue reading