Скочи на садржај
WordPress.org

Српски

  • Теме
  • Додаци
  • Новости
    • Документација
    • Форуми
  • Информације
  • Упутства
  • Речник
  • @wp_sr
  • Организација
  • Преузми Вордпрес
Преузми Вордпрес
WordPress.org

Plugin Directory

Custom Metadata Manager

  • Пошаљи додатак
  • Моји омиљени
  • Пријави се
  • Пошаљи додатак
  • Моји омиљени
  • Пријави се

Custom Metadata Manager

Аутор: Mohammad Jangda
Преузимање
  • Детаљи
  • Рецензије
  • Постављање
  • Развој
Подршка

Опис

Custom Metadata Manager gives developers a single, consistent API for adding custom fields to any object type in WordPress: post, page, any custom post type, user and comment. Rather than offering a point-and-click interface, it follows the WordPress approach of registering content in code, so your fields live alongside the rest of your theme or plugin.

Fields are grouped into metaboxes, stored through the standard WordPress metadata APIs, and remain available even if the plugin is later deactivated. You can render fields with the built-in field types or supply your own display and sanitisation callbacks, and you can include or exclude fields and groups for specific objects, either by ID or through a callback.

This approach is particularly useful when working across multiple environments (local, staging and production), because your field definitions travel with your code and need no database synchronisation.

Usage

Custom Metadata Manager is a developer-focused plugin: you register your fields and groups in code, typically from a theme’s functions.php or your own plugin. The full API reference — object types, registering fields and groups, include and exclude rules, multifields and worked examples — is documented in DEVELOPERS.md.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md for how to set up a local environment, run the tests and submit a pull request.

Support

Please report bugs and request features through the GitHub issue tracker.

Credits

Custom Metadata Manager is maintained by Automattic, and was originally created by Stresslimit. Thank you to the many community contributors who have helped shape the plugin.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 or later, as published by the Free Software Foundation. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for the full licence text.

Снимци екрана

A custom metabox added to the post editing screen.
A custom metabox added to the post editing screen.
Custom fields registered against a user profile.
Custom fields registered against a user profile.
Grouped fields displayed in a metabox with descriptions.
Grouped fields displayed in a metabox with descriptions.

Постављање

  1. Install through the WordPress admin, or upload the plugin folder to your /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Add the code to register your custom groups and fields to your theme’s functions.php or your own plugin.
  4. Enjoy.

ЧПП

Why a code-based approach instead of a UI?

Because the UI approach has been done many times before, and a code-based approach aligns more closely with the existing WordPress model for registering content, such as post types and taxonomies.

This is a developer feature aimed at site builders. The main benefit becomes clear when you work across multiple environments (development, staging and production): you can replicate interfaces and features without worrying about database synchronisation.

Why isn’t the function just `add_metadata_field`? Why the `x_` prefix?

We are namespacing our public functions, and you should too. The x_ prefix keeps the plugin’s functions from clashing with anything else in WordPress core, themes or other plugins.

How do I use this plugin?

See DEVELOPERS.md for full instructions, and the custom_metadata_examples.php file for worked examples.

Рецензије

Very good for simple development

tantaluspl 10. јул 2017.
If all you need is adding few custom metaboxes here and there to couple them with some other functionalities, this is a very clean solution. Saved me a ton of work!
Прочитај свих 5 рецензија

Сарадници и градитељи

„Custom Metadata Manager“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници
  • Mohammad Jangda
  • Automattic
  • Gary Jones

Преведите „Custom Metadata Manager“ на свој језик.

Заинтересовани сте за развој?

Прегледајте кôд, погледајте SVN складиште или се претплатите на дневник развоја преко RSS-а.

Дневник измена

The full version history is recorded in CHANGELOG.md.

Мета

  • Издање 0.8.0
  • Последње ажурирање пре 1 месец
  • Активних постављања 700+
  • Издање Вордпреса 6.4 или новије
  • Испробано до 7.1.2
  • PHP издање 7.4 или новије
  • Језик
    English (US)
  • Ознаке
    custom fieldscustom post typesmeta boxesmetadata
  • Напредни преглед

Оцене

4.4 од 5 звездица.
  • 3 рецензије са 5 звездице 5 звездица 3
  • 1 рецензија са 4 звездицом 4 звездице 1
  • 1 рецензија са 3 звездицом 3 звездице 1
  • 0 рецензија са 2 звездица 2 звездице 0
  • 0 рецензија са 1 звездица 1 звездица 0

Ваша рецензија

Види све рецензије

Сарадници

  • Mohammad Jangda
  • Automattic
  • Gary Jones

Подршка

Имате нешто да кажете? Потребна вам је помоћ?

Види форум подршке

  • О нама
  • Вести
  • Домаћинство
  • Приватност
  • Витрина
  • Теме
  • Додаци
  • Обрасци
  • Учење
  • Подршка
  • Програмери
  • WordPress.tv ↗
  • Укључите се
  • Догађаји
  • Донирај ↗
  • Роба ↗
  • WordPress.com ↗
  • Мет ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Српски

  • Посетите наш налог на X-у (раније Twitter)
  • Посетите наш Bluesky налог
  • Посетите наш Mastodon налог
  • Посетите наш налог на Threads-у
  • Посетите нашу Facebook страницу
  • Посетите наш Инстаграм налог
  • Посетите наш LinkedIn налог
  • Посетите наш TikTok налог
  • Посетите наш YouTube канал
  • Посетите наш Tumblr налог
Кôд је поезија.
The WordPress® trademark is the intellectual property of the WordPress Foundation.