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'


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"

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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