wpcom.php 872 B

123456789101112131415161718192021222324252627282930
  1. <?php declare( strict_types = 1 ); ?>
  2. <?php
  3. /**
  4. * WordPress.com-specific functions and definitions.
  5. *
  6. * This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
  7. *
  8. * @package Alves
  9. */
  10. /**
  11. * Adds support for wp.com-specific theme functions.
  12. *
  13. * @global array $themecolors
  14. */
  15. function alves_wpcom_setup() {
  16. global $themecolors;
  17. // Set theme colors for third party services.
  18. if ( ! isset( $themecolors ) ) {
  19. $themecolors = array(
  20. 'bg' => 'ffffff', // $config-global--color-background-default
  21. 'border' => '3E7D98', // $config-global--color-border-default
  22. 'text' => '394d55', // $config-global--color-foreground-default
  23. 'link' => '3E7D98', // $config-global--color-primary-default
  24. 'url' => '3E7D98', // $config-global--color-primary-default
  25. );
  26. }
  27. }
  28. add_action( 'after_setup_theme', 'alves_wpcom_setup' );