Changeset 2279 for sites/trunk/translate.wordpress.org/public_html/gp-templates-new/helper-functions.php
- Timestamp:
- 01/12/2016 05:22:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/public_html/gp-templates-new/helper-functions.php
r2118 r2279 2 2 wp_register_style( 'wporg-translate', 'https://wordpress.org/translate/gp-templates-new/style.css', array( 'base' ), '20151123' ); 3 3 gp_enqueue_style( 'wporg-translate' ); 4 5 /** 6 * Adds custom classes to the array of body classes. 7 * 8 * @param array $classes An array of body classes. 9 * @return array Filtered body classes. 10 */ 11 function wporg_gp_template_body_classes( $classes ) { 12 $classes[] = 'no-js'; 13 return $classes; 14 } 15 add_filter( 'body_class', 'wporg_gp_template_body_classes' ); 4 16 5 17 add_action( 'gp_tmpl_load_locations', function( $locations, $template, $args, $template_path ) {
Note: See TracChangeset
for help on using the changeset viewer.