Remove Existing Field From an Element

Use upb_remove_element_attribute( $id, $attributes ) helper function with upb_element_{$tag}_attributes filter hook to replace field on existing element.

Example


add_filter('upb_element_{$tag}_attributes', function( $attributes ){
    return upb_remove_element_attribute('ATTRIBUTE_ID', $attributes);
});

Removing Multiple fields


add_filter('upb_element_{$tag}_attributes',  function( $attributes ){  
    return upb_remove_element_attribute(array('ATTRIBUTE_ID_X', 'ATTRIBUTE_ID_Y'), $attributes);
});

results matching ""

    No results matching ""