1. Go to this page and download the library: Download truongwp/gallery-meta-box library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
truongwp / gallery-meta-box example snippets
/**
* 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 );
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.