File manager - Edit - /home/vblioqus/y999-game.pro/wp-content/themes/stcustom-6-new/inc/meta-boxes.php
Back
<?php add_filter( 'rwmb_meta_boxes', 'stcustom_register_meta_boxes' ); function stcustom_register_meta_boxes( $meta_boxes ) { $prefix = 'stcustom_'; $meta_boxes[] = array( 'id' => 'app-screenshots', 'title' => 'Application / Game - Screenshots', 'post_types' => 'apk', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Select Screenshots (Image Files)', 'desc' => '', 'id' => $prefix . 'app_screenshots', 'type' => 'image_upload', // Delete file from Media Library when remove it from post meta? // Note: it might affect other posts if you use same file for multiple posts 'force_delete' => false, // Maximum file uploads. 'max_file_uploads' => 20, // Do not show how many files uploaded/remaining. 'max_status' => 'false', // Image size that displays in the edit page. 'image_size' => 'thumbnail', ), ) ); $meta_boxes[] = array( 'id' => 'app-info', 'title' => 'Application / Game - Extra Info', 'post_types' => 'apk', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'APK File', 'desc' => '', 'id' => $prefix . 'app_file', 'type' => 'file_advanced', 'max_file_uploads' => 1, ), array( 'name' => 'External Link', 'desc' => '', 'id' => $prefix . 'app_external', 'type' => 'url', ), array( 'name' => 'Type', 'desc' => '', 'id' => $prefix . 'app_type', 'type' => 'select', 'options' => array( 'Application' => 'Application', 'Game' => 'Game' ), ), array( 'name' => 'Name', 'desc' => '', 'id' => $prefix . 'app_name', 'type' => 'text', ), array( 'name' => 'Developer Name', 'desc' => '', 'id' => $prefix . 'app_author', 'type' => 'text', ), array( 'name' => 'Official Site Link', 'desc' => '', 'id' => $prefix . 'app_official_site', 'type' => 'text', ), array( 'name' => 'Version', 'desc' => '', 'id' => $prefix . 'app_version', 'type' => 'text', ), array( 'name' => 'App Size', 'desc' => '', 'id' => $prefix . 'app_size', 'type' => 'text', ), array( 'name' => 'PlayStore Link', 'desc' => '', 'id' => $prefix . 'app_playstore', 'type' => 'text', ), array( 'name' => 'App Requirements', 'desc' => '', 'id' => $prefix . 'app_requirements', 'type' => 'text', ), ) ); // Add more meta boxes if you want // $meta_boxes[] = ... return $meta_boxes; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings