Changeset 12404 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/head.php
- Timestamp:
- 02/20/2023 01:21:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/head.php
r12202 r12404 17 17 add_filter( 'wp_resource_hints', [ __CLASS__, 'wp_resource_hints' ], 10, 2 ); 18 18 add_action( 'wp_head', [ __CLASS__, 'json_ld_schema' ], 1 ); 19 add_action( 'wp_head', [ __CLASS__, 'disable_hreflang' ], 1 ); 20 } 21 22 /** 23 * Disable the hreflang tags from the parent theme. 24 */ 25 public static function disable_hreflang() { 26 remove_action( 'wp_head', 'WordPressdotorg\Theme\hreflang_link_attributes' ); 19 27 } 20 28
Note: See TracChangeset
for help on using the changeset viewer.