: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
Plugin Name: Themify Popup
Plugin URI: https://themify.me/popup
Description: A free plugin to display popups for ads, newsletter subscriptions, and general info. It comes with various popup styles (classic, slide-out, fullscreen, etc.). Popups can be scheduled and configured to show on certain posts, pages, categories, and user roles.
Text Domain: themify-popup
defined( 'ABSPATH' ) or die( '-1' );
const THEMIFY_POPUP_VERSION='1.4.1';
function themify_popup_setup() {
if( ! defined( 'THEMIFY_POPUP_DIR' ) ){
define( 'THEMIFY_POPUP_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
if( ! defined( 'THEMIFY_POPUP_URI' ) ){
define( 'THEMIFY_POPUP_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
/* load Themify Metabox */
if ( ! is_file( 'themify_metabox_bootstrap' ) ) {
include THEMIFY_POPUP_DIR . 'includes/themify-metabox/themify-metabox.php';
include THEMIFY_POPUP_DIR . 'includes/system.php';
add_action( 'after_setup_theme', 'themify_popup_setup' );
function themify_popup_activate() {
include trailingslashit( __DIR__ ) . 'sample/sample.php';
Themify_Popup::register_post_type();
register_activation_hook( __FILE__, 'themify_popup_activate' );
add_filter( 'plugin_row_meta', 'themify_popup_plugin_meta', 10, 2 );
function themify_popup_plugin_meta( $links, $file ) {
if ( plugin_basename( __FILE__ ) === $file ) {
'changelogs' => '<a href="' . esc_url( 'https://themify.org/changelogs/' ) . basename( dirname( $file ) ) .'.txt" target="_blank" aria-label="' . esc_attr__( 'Plugin Changelogs', 'themify' ) . '">' . esc_html__( 'View Changelogs', 'themify' ) . '</a>'
return array_merge( $links, $row_meta );