: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* WordPress WhatsApp Support
* @copyright 2021 WeCreativez
* @license GPL-2.0-or-later
* Plugin Name: WordPress WhatsApp Support
* Plugin URI: https://codecanyon.net/item/wordpress-whatsapp-support/20963962
* Description: WordPress WhatsApp Support plugin provides better and easy way to communicate visitors and customers directly to your support person.
* Author URI: https://wecreativez.com/
* License: GPL v2 or later
* Domain Path: /languages/
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
// Preventing to direct access
defined( 'ABSPATH' ) OR die( 'Direct access not acceptable!' );
if ( ! defined( 'WWS_PLUGIN_FILE' ) ) {
define( 'WWS_PLUGIN_FILE', __FILE__ );
if ( ! defined( 'WWS_PLUGIN_PATH' ) ) {
define( 'WWS_PLUGIN_PATH', plugin_dir_path( WWS_PLUGIN_FILE ) );
if ( ! defined( 'WWS_PLUGIN_URL' ) ) {
define( 'WWS_PLUGIN_URL', plugin_dir_url( WWS_PLUGIN_FILE ) );
if ( ! defined( 'WWS_PLUGIN_VER' ) ) {
define( 'WWS_PLUGIN_VER', '2.0.7' );
* This function will run when plugin activate
function wws_plugin_install() {
require_once WWS_PLUGIN_PATH . 'includes/deprecated/class-wws-migration.php';
require_once WWS_PLUGIN_PATH . 'includes/class-wws-install.php';
register_activation_hook( __FILE__, 'wws_plugin_install' );
// Load plugin with plugins_load
require_once WWS_PLUGIN_PATH . 'includes/class-wws-init.php';
$wws_init = new WWS_Init;
add_action( 'plugins_loaded', 'wws_init', 20 );