%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/1857783/root/var/www/cwg/wp-content/plugins/wp-grid-builder/admin/settings/
Upload File :
Create Path :
Current File : //proc/1857783/root/var/www/cwg/wp-content/plugins/wp-grid-builder/admin/settings/term.php

<?php
/**
 * Term settings
 *
 * @package   WP Grid Builder
 * @author    Loïc Blascos
 * @copyright 2019-2021 Loïc Blascos
 */

use WP_Grid_Builder\Includes\Helpers;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$term_settings = [
	'id'         => 'term',
	'taxonomies' => array_keys( Helpers::get_taxonomies() ),
	'fields'     => [
		// color.
		[
			'id'          => 'color',
			'type'        => 'color',
			'label'       => sprintf(
				/* translators: %s Plugin name */
				__( '%s - Color', 'wp-grid-builder' ),
				esc_html( WPGB_NAME )
			),
			'description' => __( 'Color used in cards (Taxonomy terms block)', 'wp-grid-builder' ),
		],
		// background.
		[
			'id'          => 'background',
			'type'        => 'color',
			'label'       => sprintf(
				/* translators: %s Plugin name */
				__( '%s - Background', 'wp-grid-builder' ),
				esc_html( WPGB_NAME )
			),
			'description' => __( 'Background used in cards (Taxonomy terms block)', 'wp-grid-builder' ),
		],
	],
];

wp_grid_builder()->settings->register( $term_settings );

Zerion Mini Shell 1.0