项目作者: truongwp

项目描述 :
Simple gallery meta box for WordPress
高级语言: PHP
项目地址: git://github.com/truongwp/gallery-meta-box.git
创建时间: 2017-07-02T05:41:33Z
项目社区:https://github.com/truongwp/gallery-meta-box

开源协议:

下载


This is a library for including in plugin, not a WordPress plugin.

How to use

If you use composer, run composer require truongwp/gallery-meta-box.

Or you can include file gallery-meta-box.php.

Hooks reference

  1. /**
  2. * Fires after saving gallery data.
  3. *
  4. * @var int $post_id Post ID.
  5. * @var WP_Post $post Post object.
  6. * @var bool $update Whether this is an existing post being updated or not.
  7. */
  8. do_action( 'gallery_meta_box_save', $post_id, $post, $update );
  1. /**
  2. * Filters supported post types.
  3. *
  4. * @var array $post_types List supported post types.
  5. */
  6. apply_filters( 'gallery_meta_box_post_types', $post_types );
  1. /**
  2. * Filters meta key to store the gallery.
  3. *
  4. * @var string $meta_key Meta key.
  5. */
  6. apply_filters( 'gallery_meta_box_meta_key', $meta_key );