: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @package Smush\App\Pages
namespace Smush\App\Pages;
use Smush\App\Abstract_Page;
use Smush\App\Interface_Page;
if ( ! defined( 'WPINC' ) ) {
class Tutorials extends Abstract_Page implements Interface_Page {
* Function triggered when the page is loaded before render any content.
public function on_load() {}
* @param string $hook Hook from where the call is made.
public function enqueue_scripts( $hook ) {
$this->enqueue_tutorials_scripts();
public function render_page_header() {
$tutorials = $this->get_utm_link(
'utm_campaign' => 'smush_tutorials_page',
'https://wpmudev.com/blog/tutorials/tutorial-category/smush-pro/'
<h1 class="sui-header-title"><?php echo esc_html( get_admin_page_title() ); ?></h1>
<div class="sui-actions-right">
<?php if ( ! apply_filters( 'wpmudev_branding_hide_doc_link', false ) ) : ?>
<a href="<?php echo esc_url( $tutorials ); ?>" target="_blank" class="sui-button sui-button-ghost">
<span class="sui-icon-open-new-window" aria-hidden="true"></span>
<?php esc_html_e( 'View All', 'wp-smushit' ); ?>