$value){ if (is_array($value) == true){ $post[$key] = serialize($value); } else { $post[$key] = $value; } } if (isset($_POST["submit"])) { if (sanitize_text_field($_POST["add"]) == "1") { $objItem->addNewItem($data, $post); header("Location:admin.php?page=".$page."&info=saved"); exit; } else if (sanitize_text_field($_POST["add"]) == "2") { $objItem->updItem($data, $post); header("Location:admin.php?page=".$page."&tool=add&act=update&id=".$id."&info=update"); exit; } } } } //* Footer text if ( ! function_exists ( 'wow_plugins_admin_footer_text' ) ) { add_filter( 'admin_footer_text', 'wow_plugins_admin_footer_text' ); function wow_plugins_admin_footer_text( $footer_text ) { global $wow_plugin_bm; if ( $wow_plugin_bm == true ) { $rate_text = sprintf( 'Developed by Wow-Company | Support | Join us on Facebook'); return str_replace( '', '', $footer_text ) . ' | ' . $rate_text . ''; } else { return $footer_text; } } }