Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karimmtarek/fe5be1029f1e7ad1ffb77b97ccf7931b to your computer and use it in GitHub Desktop.
Save karimmtarek/fe5be1029f1e7ad1ffb77b97ccf7931b to your computer and use it in GitHub Desktop.
// JavaScript
let hidePage = () => {
let payload = {
object_type: 'page',
object_id: 123,
namespace: 'seo',
key: 'hidden',
value: 1,
value_type: 'number_integer'
};
FieldsRaven.metafieldCreateUpdate(payload).then((res) => {
if (res.status === 200) {
// Do something or not!
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment