定制 steveorevo/cpt-extensions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

steveorevo/cpt-extensions

Composer 安装命令:

composer require steveorevo/cpt-extensions

包简介

This object provides additional enhanced options for WordPress CPT (custom post types) by allowing additional options in the CPT post registration.

README 文档

README

CPT Extensions object provides additional enhanced options for WordPress CPT (custom post types) by allowing additional options in the CPT post registration. The following enhanced options will be enabled when registering custom post types:

Enhanced Register Post Type Features:

  • default_screen_layout - integer, sets the current user's default screen layout which indicates the number of columns when visiting the CPT for the first time. Valid values are 1 or 2, with the current default set to 2 columns.
  • simplify_publish_box - boolean, simplifies the publish metabox by only displaying "Move to Trash", and the "Publish" button.
  • update_bulk_messages - boolean, customize the bulk message that appear when editing or updating CPTs. I.e. "Post published" can become "Site published", etc.
  • dragndrop_sortable - boolean, enables drag and drop re-ordering in list view. Default is false for disabling drag and drop support.
  • metabox_layout - number, indicates enhanced layout to display 0 - normal, 1 - tabbed interface, 2 - wizard like interface.
  • show_edit_slug_box - boolean, determines if the slugbox is displayed.
  • disable_autosave - boolean, determins if WordPress will autosave. Default is false.
  • remove_bulk_actions - array, bulk item operations to remove from the list view drop down combo box, i.e. ['edit', 'trash']. The default is an empty array.
  • remove_row_actions - array, row operations to remove from the list view i.e. ['view', 'edit']. The default is an empty array.
  • remove_quick_edit - boolean, removes the Quick Edit menu option in list view. The default is false to allow the Quick Edit menu to appear.
  • hide_title_field - boolean, hides the title field from the CPT add and edit screen. The default is true to show the title field.
  • menu_icon_font - string, supports the display of an icon font for a menu item. If the given string is presented with a font name and character value, a menu icon css definition is included in the header. Note: the original menu_icon value should be set to an empty string.

Enhanced Labels for Custom Post Type Options:

  • enter_title_here_text - string, the suggestion text that appears in the title area of the CPT "Add New" screen. The default is a localized string for the value 'Enter title here'.

License & Copyright

CPT-Extensions is Copyright Stephen J Carnam 2012, and is offered under the terms of the GNU General Public License, version 2.

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL
  • 更新时间: 2016-01-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固