scribu / wp-scb-framework

Utilities for speeding up WordPress plugin and theme development
https://github.com/scribu/wp-scb-framework/wiki
220 stars 59 forks source link

Adding field to metaboxes #61

Open ghost opened 2 years ago

ghost commented 2 years ago

First, forgive bad English, but it's not my native language.

Then I'd like to ask you something.

This framework took me a long way and is exactly the collection of classes I've been looking for a while. However, in four days I couldn't find a way to add the fields to the metaboxes. The metaboxes are created without any problems, but I just can't add the fields.

I noticed that you haven't documented it anywhere and I think it was an oversight. If you feel like answering me, you or anyone else, could you tell me how to do it?

Thanks in advance.

Adriano

dikiyforester commented 2 years ago

Hi Adriano, take a look at this sample https://github.com/senviet/scbPostMetabox-Example/blob/master/inc/Sample_Metabox.php