New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

truongwp/gallery-meta-box

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

truongwp/gallery-meta-box

Provides a simple gallery meta box for WordPress.

Source
Packagist
Version
0.1.2
Version published
Total downloads
30
Maintainers
1
Created
Source

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

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

Keywords

wordpress

FAQs

Package last updated on 21 Jul 2017

Related posts