wcnc2015 - options pages for themes and plugins
TRANSCRIPT
Options API C-R-U-D for the WP Options Table
Create add_option()
Read get_option()
Update update_option()
Delete delete_option()
Settings API Groups and Sections and Fields, Oh MY!
GroupA Group of optionsthat will be savedtogether in theoptions table. Use:register_setting()unregister_setting()settings_fields()
Settings API Groups and Sections and Fields, Oh MY!
GroupA Group of optionsthat will be savedtogether in theoptions table. Use:register_setting()unregister_setting()settings_fields()
SectionA sub-group of options that will render together on an options page. Use:add_settings_section()do_settings_section()
AnotherSection
Settings API Groups and Sections and Fields, Oh MY!
GroupA Group of optionsthat will be savedtogether in theoptions table. Use:register_setting()unregister_setting()settings_fields()
SectionA sub-group of options that will render together on an options page. Use:add_settings_section()do_settings_section()
AnotherSection
FieldAn individual option. Use:add_settings_field()do_settings_field()
Another Field
Another Field
Caspar Green@i_Caspar
[email protected] www.caspar.green github.com/iCaspar
www.slideshare.net/CasparGreen