: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Data for the sample popup post created on activation of the plugin
// if there are existing popup posts, don't create any
$query = get_posts( array(
'post_type' => 'themify_popup',
'post_status' => array( 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', 'trash' )
if( ! empty( $query ) ) {
'post_type' => 'themify_popup',
'post_title' => __( 'Sample popup', 'themify-popup' ),
'post_content' => '<div class="welcome-popup">
<h2>Thank you for using <br>
<p>This is a sample pop up. A <a href="https://themify.me/themes">Themify theme</a> or <a href="https://wordpress.org/plugins/themify-builder">Builder Plugin</a> (free) is recommended to design the pop up layouts.</p>
<p class="action-buttons"><a href="https://themify.me/builder">Get Builder</a> <a href="#" class="outline">Watch Video</a></p>
'post_status' => 'publish',
'popup_start_at' => '1970-01-01 00:00:00',
'popup_end_at' => '3015-01-01 00:00:00',
'_tf_popup_sample_post' => 'yes', // flag, may come handy in the future,
'custom_css' => '%POPUP% .welcome-popup {
%POPUP% .welcome-popup h1,
%POPUP% .welcome-popup h2,
%POPUP% .welcome-popup h3 {
%POPUP% .welcome-popup a {
%POPUP% .action-buttons {
%POPUP% .action-buttons a {
%POPUP% .action-buttons a.outline {