This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Template block para el CPT de Herrramient de Nools */ | |
add_action( 'register_post_type_args', __NAMESPACE__ . '\block_templates', 20, 2 ); | |
function block_templates( $args, $post_type ) { | |
if ( 'herramienta' === $post_type) { | |
$args[ 'template' ] = [ | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Template block para las entradas de Los Mundos de Celi */ | |
add_action( 'register_post_type_args', 'cg_post_block_template', 20, 2 ); | |
function cg_post_block_template( $args, $post_type ) { | |
$block_route_list = new WP_Query( | |
[ | |
'post_type' => 'wp_block', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Template block para las entradas de podcast de Freelandev */ | |
add_action( 'register_post_type_args','podcast_block_template', 20, 2 ); | |
function podcast_block_template ( $args, $post_type ) { | |
if ( 'podcast' === $post_type) { | |
$args[ 'template' ] = [ | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cg_gutenberg_color_palette() { | |
add_theme_support( | |
'editor-color-palette', array( | |
array( | |
'name' => esc_html__( 'Black', 'genesis-sample' ), | |
'slug' => 'black', | |
'color' => '#2a2a2a', | |
), | |
array( | |
'name' => esc_html__( 'Gray', 'genesis-sample' ), |