functions.php 695 B

12345678910111213141516171819202122232425
  1. <?php
  2. function uhp24_styles() {
  3. wp_enqueue_style(
  4. 'uhp-style',
  5. get_stylesheet_uri(),
  6. [],
  7. wp_get_theme()->get( 'Version' )
  8. );
  9. }
  10. add_action( 'wp_enqueue_scripts', 'uhp24_styles' );
  11. /***********************************************************
  12. ######################## Editor ############################
  13. ************************************************************/
  14. add_action( 'enqueue_block_assets', 'uhp24_block_styles', 5 );
  15. function uhp24_block_styles(){
  16. wp_enqueue_style('uhp24-css', get_stylesheet_directory_uri() . '/style.css');
  17. }
  18. add_filter( 'should_load_remote_block_patterns', 'uhp24_disable_remote_patterns' );
  19. function uhp24_disable_remote_patterns() {
  20. return false;
  21. }