get_slug(); $button_msg = 'smush-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? */ $enabled = 'smush-integrations' === $current_tab ? apply_filters( 'wp_smush_integration_show_submit', false ) : true; if ( 'smush-cdn' === $current_tab && ! WP_Smush::get_instance()->core()->mod->cdn->get_status() ) { $button_text = __( 'Save & Activate', 'wp-smushit' ); $button_msg = __( 'Activating CDN...', 'wp-smushit' ); } ?>