get_current_tab(); $button_msg = 'bulk' === $current_tab ? '' : __( 'Saving changes...', 'wp-smushit' ); $button_text = __( 'Save changes', 'wp-smushit' ); /** * Filter to enable/disable submit button in integration settings. * * @param bool $show_submit Should show submit? */ $disabled = 'integrations' === $current_tab ? apply_filters( 'wp_smush_integration_show_submit', false ) : false; if ( 'cdn' === $current_tab && ! WP_Smush::get_instance()->core()->mod->cdn->get_status() ) { $button_text = __( 'Save & Activate', 'wp-smushit' ); $button_msg = __( 'Activating CDN...', 'wp-smushit' ); } ?>