Linux 软件免费装

LibWp

开发者 mostafa.s1990
kashani
veronalabs
更新时间 2021年4月4日 17:11
捐献地址: 去捐款
PHP版本: 7.1 及以上
WordPress版本: 5.6.1
版权: GPLv3
版权网址: 版权信息

标签

theme taxonomy library post-type functionality

下载

1.0 1.1 1.4 2.2 1.2 1.3 2.0 2.1

详情介绍:

Provide some simple functionality to register some hooks that could not register inside the WordPress themes Quick Start Get instance of main class. LibWp(); Post type LibWp()->postType(); Taxonomy LibWp()->taxonomy(); Register a new taxonomy LibWp()->postType() ->setName('book') ->setLabels([ 'name' => _x('Books', 'Post type general name', 'textdomain'), 'singular_name' => _x('Book', 'Post type singular name', 'textdomain'), 'menu_name' => _x('Books', 'Admin Menu text', 'textdomain'), 'add_new' => ('Add New', 'textdomain'), 'edit_item' => ('Edit Book', 'textdomain'), 'view_item' => ('View Book', 'textdomain'), 'all_items' => ('All Books', 'textdomain'), ]) ->setFeatures([ 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ]) ->setArgument('show_ui', true) ->register(); Register a new taxonomy belongs to previous post type LibWp()->taxonomy() ->setName('types') ->setPostTypes('book') ->setArgument('show_in_rest', true) ->setLabels([ 'name' => _x('Types', 'taxonomy general name', 'textdomain'), 'singular_name' => _x('Type', 'taxonomy singular name', 'textdomain'), 'search_items' => ('Search Types', 'textdomain'), 'all_items' => ('All Types', 'textdomain'), 'edit_item' => ('Edit Type', 'textdomain'), 'add_new_item' => ('Add New Type', 'textdomain'), 'new_item_name' => ('New Type Name', 'textdomain'), 'menu_name' => ('Types', 'textdomain'), ]) ->register();

安装:

  1. Upload libwp to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

升级注意事项:

2.0
  • IMPORTANT: the structure is totally changed, so if you're using any functionality of the old version, upgrading to this version might break down your site.

更新日志:

2.2 2.1 2.0 1.0