Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($status === true) {
- add_settings_error(
- $this->plugin_name . '-notices',
- $this->plugin_name,
- __('** value has been updated.'),
- 'updated'
- );
- } else {
- add_settings_error(
- $this->plugin_name . '-notices',
- $this->plugin_name,
- __('** value is not valid.'),
- 'error'
- );
- }
- //Redirect to ..
- $url = admin_url(
- "admin.php?page=***_product" .
- "&tab=view_single_product_tab" .
- "&provider_id=" . $provider_id .
- "&product_id=" . $product_id
- );
- wp_redirect($url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement