themes-wordpress/redhill/inc/wpcom.php
2024-07-08 15:47:14 +07:00

22 lines
699 B
PHP

<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.
*
* @global array $themecolors
*/
function redhill_wpcom_setup() {
global $themecolors;
// Set theme colors for third party services.
if ( ! isset( $themecolors ) ) {
$themecolors = array(
'bg' => 'FFFFFF', // $config-global--color-background-default
'border' => 'DDDDDD', // $config-global--color-border-default
'text' => '222222', // $config-global--color-foreground-default
'link' => 'CA2017', // $config-global--color-primary-default
'url' => 'CA2017', // $config-global--color-primary-default
);
}
}
add_action( 'after_setup_theme', 'redhill_wpcom_setup' );