Modify / Change Element Options

Use upb_element_{$tag}_upb_options to change element name, icon, meta, help text, messages, assets.

Example: ( Adding Preview CSS )

add_filter("upb_element_{$tag}_upb_options", function( $upb_options ){

    $upb_options['assets']['preview']['css'] = get_theme_file_uri( '/ultimate-page-builder/preview-css/your-preview-css-file.css' );

    return $upb_options;

});

Example: ( Change Element Name )

add_filter("upb_element_{$tag}_upb_options", function( $upb_options ){

    $upb_options['element']['name'] = 'New Name';

    return $upb_options;

});

Example: ( Adding Tag )

add_filter("upb_element_{$tag}_upb_options", function( $upb_options ){

    $upb_options['element']['tag'] = 'theme';

    return $upb_options;

});

results matching ""

    No results matching ""