: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// Preventing to direct access
defined( 'ABSPATH' ) OR die( 'Direct access not acceptable!' );
if ( ! function_exists( 'wws_selected_timezone' ) ) {
* Return selected WordPress time zone by admin
function wws_selected_timezone() {
return ( get_option( 'timezone_string' ) ) ? get_option( 'timezone_string' ) : esc_html__( 'Know here', 'wc-wws' );
if ( ! function_exists( 'wws_multi_account_availablity' ) ) {
function wws_multi_account_availablity( $day = array(), $start_time, $end_time ) {
$current_day = strtolower(current_time('D'));
$current_time = (int)current_time('Hi');
if ( ! in_array( $current_day, $day ) ) {
if ( $current_time < $start_time ) {
if ( $current_time > $end_time ) {
function wws_shuffle_assoc( $my_array ) {
$keys = array_keys( $my_array );
foreach( $keys as $key ) {
$new[$key] = $my_array[$key];