Changeset 14219 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/functions.php
- Timestamp:
- 11/28/2024 03:44:30 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/functions.php
r14065 r14219 30 30 * Actions and filters. 31 31 */ 32 add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_admin_assets' ); 32 33 add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); 33 34 add_action( 'sensei_quiz_question_inside_after', __NAMESPACE__ . '\sensei_question_add_closing_fieldset' ); … … 114 115 add_filter( 'mkaz_code_syntax_force_loading', '__return_true' ); 115 116 add_filter( 'mkaz_prism_css_path', __NAMESPACE__ . '\update_prism_css_path' ); 117 } 118 119 /** 120 * Enqueue scripts and styles. 121 */ 122 function enqueue_admin_assets() { 123 $style_path = get_stylesheet_directory() . '/build/style/index.css'; 124 $style_uri = get_stylesheet_directory_uri() . '/build/style/index.css'; 125 wp_enqueue_style( 126 'wporg-learn-2024-admin-style', 127 $style_uri, 128 array(), 129 filemtime( $style_path ) 130 ); 116 131 } 117 132
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)