: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Initialize the Redux Template Library.
* @package Redux Framework
namespace ReduxTemplates;
defined( 'ABSPATH' ) || exit;
* Redux Templates Init Class
public function __construct() {
if ( 'widgets.php' === $pagenow ) {
require_once REDUXTEMPLATES_DIR_PATH . 'classes/class-templates.php';
add_action( 'init', array( $this, 'load' ) );
if ( did_action( 'init' ) ) { // In case the devs load it at the wrong place.
* Load everything up after init.
public static function load() {
new ReduxTemplates\Templates();