apply_filters( 'lp__option_submit_button_html', $items )

This code filters and customizes the option submit button HTML.


Plugin


Namespace

Launchpad


Parameters

string

$items

Contact Details HTML item list


Return

string

Filtered contact detail HTML item list


Example

Here’s how you can customize the HTML of the option submit button using the lp__option_submit_button_html filter:

add_filter( 'lp__option_submit_button_html', function() {
    ob_start(); 
    
    // Generate the submit button HTML with custom label and attributes
    submit_button( __( "Update here", 'launchpad' ), "primary", "submit", false ); 
    
    // Get the generated HTML content
    $submit_button_html = ob_get_clean();
    
    // Return the modified submit button HTML
    return $submit_button_html;
});

After applying this customization, the HTML markup of the option submit button will be modified to display the custom label and attributes specified within the filter callback function.

Feel free to adjust the contents and attributes of the submit button HTML inside the filter callback function according to your specific requirements. This flexibility allows you to tailor the appearance and behavior of the submit button to match your design preferences.

Related

Allow filter for specific admin pages.

Allow filter for specific admin pages arguments.

Allow filter for all admin sub views arguments.

Allow filter for admin views arguments of specific admin page and view.

Allow filter for admin sub views arguments of specific admin page, view, and sub view.

Allow filter for admin sub views arguments of specific admin page.

Allow filter for specific admin sub view arguments.

Allow filter for admin sub view arguments of specific admin view.

Allow filter for admin sub views param.

Allow filter for admin sub views param of specific admin page.

Allow filter for admin sub views param of specific admin page and view.

Allow filter for admin sub views param of specific admin page view.

Allow filter for all admin toolbar arguments.

Allow filter for specific admin toolbar arguments.

Allow filter for all admin toolbar arguments.

Allow filter for specific admin toolbar arguments.

Allow filter for all admin views arguments.

Allow filter for admin views arguments of specific admin page and view.

Allow filter for admin views arguments of specific admin page.

Allow filter for specific admin view arguments.

Allow filter for all admin views param.

Allow filter for admin views param of specific admin page.

Allow filtering the button HTML text to render.

Allow filter for customizing the HTML items for contact details.

Allow filter for all field group arguments.

Allow filter for specific field group arguments.

Allow field value filter.

Allow filtering the link HTML text to render.

Allow filtering of template parts to be rendered on a page.

Allow filtering of template parts to be rendered on a page for a specific template.

Allow filtering of template parts to be rendered on a page for a specific template and type.

Allow filter for the HTML structure of price.

Allow filter for the price HTML arguments.

Allow filter for customizing the HTML items for social media links.