Explorar el Código

Videomaker: Rename functions (#4868)

Ben Dwyer hace 3 años
padre
commit
2c39dbea84
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      videomaker/functions.php

+ 6 - 6
videomaker/functions.php

@@ -3,14 +3,14 @@
 /**
 /**
  * Add Editor Styles
  * Add Editor Styles
  */
  */
-function newtheme_editor_styles() {
+function videomaker_editor_styles() {
 	// Enqueue editor styles.
 	// Enqueue editor styles.
 	add_editor_style(
 	add_editor_style(
 		array(
 		array(
 			'/assets/theme.css',
 			'/assets/theme.css',
 		)
 		)
 	);
 	);
-	
+
 	// Primary navigation is used on the header and the footer pattern
 	// Primary navigation is used on the header and the footer pattern
 	register_nav_menus(
 	register_nav_menus(
 		array(
 		array(
@@ -20,16 +20,16 @@ function newtheme_editor_styles() {
 		)
 		)
 	);
 	);
 }
 }
-add_action( 'after_setup_theme', 'newtheme_editor_styles' );
+add_action( 'after_setup_theme', 'videomaker_editor_styles' );
 
 
 /**
 /**
  *
  *
  * Enqueue scripts and styles.
  * Enqueue scripts and styles.
  */
  */
-function newtheme_scripts() {
-	wp_enqueue_style( 'newtheme-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
+function videomaker_scripts() {
+	wp_enqueue_style( 'videomaker-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
 }
 }
-add_action( 'wp_enqueue_scripts', 'newtheme_scripts' );
+add_action( 'wp_enqueue_scripts', 'videomaker_scripts' );
 
 
 /**
 /**
  * Block Patterns.
  * Block Patterns.