File "term.php"
Full path: /home/dora/public_html/wp-content/plugins/wp-grid-builder/admin/settings/term.php
File size: 1.05 KB
MIME-type: --
Charset: utf-8
<?php
/**
* Term settings
*
* @package WP Grid Builder
* @author Loïc Blascos
* @copyright 2019-2022 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 );