开发者 |
inc2734
toro_unit mimosafa hideokamoto hisako-isaka kurudrive hanamura justinticktock designhehe mayukojpn hogetan robssanches mirucon sysbird kengyu-nakamura fuyuan9 |
---|---|
更新时间 | 2024年10月11日 13:56 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.4 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
SCF::get( 'field-name' )
This method can get meta data of any group.
SCF::get( 'group-name' )
This method can get all meta data.
SCF::gets()
User meta data
This method can get any user meta data.
SCF::get_user_meta( $user_id, 'field-name' )
This method can get user meta data of any group.
SCF::get_user_meta( $user_id, 'group-name' )
This method can get all user meta data.
SCF::get_user_meta( $user_id )
Term meta data
This method can get any term meta data.
SCF::get_term_meta( $term_id, $taxonomy 'field-name' )
This method can get term meta data of any group.
SCF::get_term_meta( $term_id, $taxonomy, 'group-name' )
This method can get all term meta data.
SCF::get_term_meta( $term_id, $taxonomy )
Custom options page meta data
This method can get any custom options page meta data.
SCF::get_option_meta( $menu_slug, 'field-name' )
This method can get custom options page meta data of any group.
SCF::get_option_meta( $menu_slug, 'group-name' )
This method can get all custom options page meta data.
SCF::get_option_meta( $menu_slug )
Create custom options page
SCF::add_options_page( $page_title, $menu_title, $capability, $menu_slug, $icon_url = '', $position = null );
Register custom fields by the code.
https://gist.github.com/inc2734/9f6d65c7473d060d0fd6
GitHub
https://github.com/inc2734/smart-custom-fields/
译:
Smart Custom Fields
to the /wp-content/plugins/
directorysmart-cf-register-fields
filter hook.