Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. if($status === true) {
  2. add_settings_error(
  3. $this->plugin_name . '-notices',
  4. $this->plugin_name,
  5. __('** value has been updated.'),
  6. 'updated'
  7. );
  8. } else {
  9. add_settings_error(
  10. $this->plugin_name . '-notices',
  11. $this->plugin_name,
  12. __('** value is not valid.'),
  13. 'error'
  14. );
  15. }
  16. //Redirect to ..
  17. $url = admin_url(
  18. "admin.php?page=***_product" .
  19. "&tab=view_single_product_tab" .
  20. "&provider_id=" . $provider_id .
  21. "&product_id=" . $product_id
  22. );
  23. wp_redirect($url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement