- Timestamp:
- 03/04/2021 11:49:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/init.php
r10759 r10765 20 20 public static function get_handbook_objects() { 21 21 return self::$handbooks; 22 } 23 24 /** 25 * Returns a handbook of the given post type. 26 * 27 * @param string $post_type The handbook post type. 28 * @return WPorg_Handbook|false The handbook object, or false if no such 29 * handbook. 30 */ 31 public static function get_handbook( $post_type ) { 32 $handbooks = self::get_handbook_objects(); 33 return $handbooks[ $post_type ] ?? false; 22 34 } 23 35
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)