0

Is it possible to hard define a custom field value with a function?

As in, no matter what WordPress will always set the value of 'some_meta' => 'this'

1 Answer 1

0

Instead of directly grabbing the meta, wrap it in a function, then you can provide a default, or, comment out the innards and just return "this"

1
  • Thanks for your reply, I believe this is working the way I intended
    – Kyle
    Commented Oct 5, 2012 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.