WordPress plugin intelligence profile

Smart Custom Fields

Smart Custom Fields is a simple plugin for managing custom fields.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version5.0.8
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 6.4 · PHP 7.4
Directory statusactive
Last directory update16 Jul 20263mo ago
Active installations50K+Adoption metric — not a quality score
WordPress.org rating4.9 / 5 from 21 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Smart Custom Fields version 5.0.8 as active, updated 3mo ago and tested up to WordPress 6.8.

Overview

About this plugin

Smart Custom Fields is a simple plugin for managing custom fields.

Features

  • Field group loop support.
  • Meta data revision support.
  • Meta data preview support.

Field Types

  • Text
  • Textarea
  • Radio
  • Select
  • Checkbox
  • WYSIWYG editor
  • Image
  • File
  • Related Posts
  • Related Terms
  • Color picker
  • Date picker
  • Datetime picker
  • Boolean
  • Message

How to get meta data?

**The return value of each of the following methods is not sanitized. Please sanitize them if necessary. **

org/apis/security/escaping/

Post meta data

This method can get any meta data.

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.

Learn more about bidirectional Unicode characters

Show hidden characters

php

/**

* カスタムフィールドを定義

*

* @param array $settings Smart_Custom_Fields_Setting オブジェクトの配列

* @param string $type 投稿タイプ or ロール

* @param int $id 投稿ID or ユーザーID

* @param string $meta_type post | user

* @return array

*/

function my_register_fields( $settings, $type, $id, $meta_type ) {

// SCF::add_setting( 'ユニークなID', 'メタボックスのタイトル' );

php から追加 その1' );

// $Setting->add_group( 'ユニークなID', 繰り返し可能か, カスタムフィールドの配列 );

$Setting->add_group( 'group-name-1', false, array(

array(

'name' => 'field-1',

'label' => 'テストフィールド',

'type' => 'text',

),

array(

'name' => 'field-2',

'label' => 'テストフィール2',

'type' => 'text',

'default' => 2,

),

) );

$settings[] = $Setting;

return $settings;

}

add_filter( 'smart-cf-register-fields', 'my_register_fields', 10, 4 );

view raw

php

hosted with ❤ by GitHub

GitHub

com/inc2734/smart-custom-fields/

Translators

  • Japanese(ja) – JOTAKI Taisuke

You can translate this plugin into your language by using GlotPress.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • custom field
  • meta field
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 6.4 · PHP 7.4
Update activity16 Jul 20263mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.