[wordpress插件] AJAX Post MetaAJAX发布元

wordpress 插件 文章 2020-02-14 01:40 527 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Allow any plain-text custom field to be edited via AJAX on the All Posts page.

允许在所有帖子页面上通过AJAX编辑任何纯文本自定义字段。

We use it at Brainstorm Media for quickly editing SEO titles, descriptions, and keywords.

我们在 Brainstorm媒体中使用它来快速编辑SEO标题,描述和关键字。

However, filters are provided for targeting any plain-text custom field.

但是,提供了用于定位任何纯文本自定义字段的过滤器。

AJAX Post Meta will auto-detect and add columns for:

AJAX Post Meta将自动检测并添加以下列:

Plugins

插件

    • All in One SEO Pack
    • 一站式搜索引擎优化包

    • Greg’s High Performance SEO
    • Greg的高性能SEO

    • Headspace2
    • Headspace2

    • Meta SEO Pack
    • 元搜索引擎优化包

    • Platinum SEO
    • 白金SEO

    • SEO Ultimate
    • SEO Ultimate

    • WordPress SEO
    • WordPress SEO

    Themes

    主题

      • Builder
      • Builder

      • Headway
      • 前进

      • Hybrid
      • 混合

      • Thesis
      • 论文

安装步骤

    1. Upload the folder ajax-post-meta into the /wp-content/plugins/ directory
    2. 将文件夹 ajax-post-meta 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. If your plugin or theme is supported, edit columns will be automatically added to your All Posts page.
    6. 如果支持您的插件或主题,编辑列将自动添加到您的所有帖子页面。

    Advanced: You may add support for other custom fields and post types using the following filters in your theme’s functions.php file:

    高级:您可以在主题的 functions.php 文件中使用以下过滤器添加对其他自定义字段和帖子类型的支持:

    function my_ajax_meta_post_types( $post_types ) {    

      function my_ajax_meta_post_types($ post_types){    

    // Add list of post types to any previously enabled.    

    //将帖子类型列表添加到任何先前启用的帖子中。    

    // To complete override, just return an array    

    //要完成覆盖,只需返回一个数组    

    return wp_parse_args( array(        

    返回wp_parse_args(array(        

    'post',        

    “发布”,        

    'page',    

    '页',    

    ), $post_types );

    ),$ post_types);

    }

    }

    add_filter('ajax_meta_post_types', 'my_ajax_meta_post_types');

    add_filter('ajax_meta_post_types','my_ajax_meta_post_types');

    function my_ajax_meta_keys($keys) {    

    函数my_ajax_meta_keys($ keys){    

    // Array of meta keys to enable editing for    

    //启用元数据编辑的元键数组    

    return wp_parse_args( array(        

    返回wp_parse_args(array(        

    // Example AIOSEO meta keys        

    //示例AIOSEO元键        

    '_aioseop_title' => __('Title Override'),        

    '_aioseop_title'=> __('Title Override'),        

    '_aioseop_description' => __('Description'),        

    '_aioseop_description'=> __('Description'),        

    '_aioseop_keywords' => __('Keywords'),        

    '_aioseop_keywords'=> __('Keywords'),        

    '_aioseop_titleatr' => __('Title Attribute'),        

    '_aioseop_titleatr'=> __('标题属性'),        

    '_aioseop_menulabel' => __('Menu Label'),        

    '_aioseop_menulabel'=> __('菜单标签'),        

    // General syntax        

    //通用语法        

    // 'meta_key' => __('Column Title'),    

    //'meta_key'=> __('Column Title'),    

    ), $keys );

    ),$ keys);

    }

    }

    add_filter('ajax_meta_keys', 'my_ajax_meta_keys');

    add_filter('ajax_meta_keys','my_ajax_meta_keys');

下载地址

https://downloads.wordpress.org/plugin/ajax-post-meta.1.0.1.zip

https://downloads.wordpress.org/plugin/ajax-post-meta.1.0.1.zip

-EOF-

AI助手支持GPT4.0