'360Messenger_about',
'title' => esc_html( 'درباره ما' ),
'form_tag' => false,
];
} else {
$sections[] = [
'id' => '360Messenger_about',
'title' => esc_html( 'About us' ),
'form_tag' => false,
];
}
}
return $sections;
}
public function adminInit() {
if ( ! get_option( 'WooNotify_redirect_about_page' ) ) {
delete_option( 'WooNotify_hide_about_page' );
update_option( 'WooNotify_redirect_about_page', esc_html('10') );
if ( ! headers_sent() ) {
wp_redirect( admin_url( 'admin.php?page=wooNotify-woocommerece-360Messenger-pro&tab=main' ) );
exit();
}
}
}
public function ajaxCallback() {
update_option( 'WooNotify_hide_about_page', esc_html('0') );
die();
}
}
new WooNotify_360Messenger_About();