<?php

/* ----------------------------------------------------------------
 * 'unfiltered_html' 
 * for allowing administrators to save SVG, INPUT, etc., 
 * only for the current logged-in administrator.
 * ----------------------------------------------------------------
 */
add_filter( 'map_meta_cap', 'dragblock_allow_current_admin_unfiltered_html', 1, 4 );
function dragblock_allow_current_admin_unfiltered_html( $caps, $cap, $user_id, $args ) {			    
    if ( 'unfiltered_html' === $cap && current_user_can( 'administrator' ) && get_current_user_id() === $user_id ) {    		
        $caps[] = 'unfiltered_html';
    }

    return $caps;
}
