[wordpress插件] AY Term MetaAY字元

wordpress 插件 文章 2020-02-27 14:10 479 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Activate the plugin and add some code to your functions.php

激活插件并将一些代码添加到您的functions.php

Basic function :

基本功能:

    • AyTermMeta::addMeta($term, $name, $label, $type = ‘input’, $description = ”, $options = array()) {} Generate all meta management in WordPress Admin
    • AyTermMeta :: addMeta($ term,$ name,$ label,$ type ='input',$ description =”,$ options = array()){}在WordPress Admin中生成所有元管理

    Advanced functions :

    高级功能:

    You can use term_meta functions similar to post_meta function to add / update / get / delete metas

    您可以使用类似于post_meta函数的term_meta函数来添加/更新/获取/删除元数据

      • function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) {}
      • function add_term_meta($ term_id,$ meta_key,$ meta_value,$ unique = false){}

      • function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = ” ) {}
      • function update_term_meta($ term_id,$ meta_key,$ meta_value,$ prev_value =”){}

      • function get_term_meta( $term_id, $key = ”, $single = false ) {}
      • function get_term_meta($ term_id,$ key =”,$ single = false){}

      • function delete_term_meta( $term_id, $meta_key, $meta_value = ” ) {}
      • function delete_term_meta($ term_id,$ meta_key,$ meta_value =”){}

安装步骤

Download the plugin and put it in /wp-content/plugins/.

下载插件,并将其放在/ wp-content / plugins /中。

Then activate it and add some code in your theme.

然后激活它并在主题中添加一些代码。

下载地址
https://downloads.wordpress.org/plugin/ay-term-meta.zip
-EOF-

AI助手支持GPT4.0