Changeset 11487
- Timestamp:
- 01/29/2022 04:01:13 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/sensei.php
r11057 r11487 17 17 add_action( 'sensei_before_main_content', __NAMESPACE__ . '\theme_wrapper_start' ); 18 18 add_action( 'sensei_after_main_content', __NAMESPACE__ . '\theme_wrapper_end' ); 19 add_filter( 'sensei_course_slug', __NAMESPACE__ . '\wporg_correct_post_slug' ); 20 21 /** 22 * Correct the slug in post permalinks to always be "course" regardless of the language chosen for the site. 23 * 24 * @param string $slug //unused 25 * 26 * @return string Correct slug of "course" for the learn.wordpress.org site. 27 */ 28 function wporg_correct_post_slug( $slug ) { 29 return 'course'; 30 } 19 31 20 32 /**
Note: See TracChangeset
for help on using the changeset viewer.