Changeset 3044060
- Timestamp:
- 03/02/2024 04:11:57 PM (2 years ago)
- Location:
- author-rel-me-link/trunk
- Files:
-
- 2 edited
-
author-rel-me-link.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
author-rel-me-link/trunk/author-rel-me-link.php
r3037528 r3044060 7 7 * Description: Adds a rel-me <link> to the <head> of author pages if they have 8 8 * a Website set in their Profile 9 * Version: 0.1. 19 * Version: 0.1.2 10 10 * Author: topdownjimmy 11 11 * Author URI: https://www.jaysitter.com 12 12 * License: GPLv2 or later 13 13 * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 14 * Text Domain: a uthor-rel-me-link14 * Text Domain: arml 15 15 * Requires at least: 2.8 16 16 * Tested up to: 6.4.3 … … 25 25 26 26 27 function head_link_rel_me_html_in_header() {27 function arml_link_rel_me() { 28 28 if ( is_author() && get_the_author_meta( 'user_url' ) ) { 29 29 echo '<link rel="me" href="' . esc_url( get_the_author_meta( 'user_url' ) ) . '" />'; … … 31 31 } 32 32 33 add_action( 'wp_head', ' insert_html_in_header' );33 add_action( 'wp_head', 'arml_link_rel_me' ); -
author-rel-me-link/trunk/readme.txt
r3037528 r3044060 4 4 Requires at least: 2.8 5 5 Tested up to: 6.4.3 6 Stable tag: 0.1. 16 Stable tag: 0.1.2 7 7 License: GPL2 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 9 Add a rel="me" link to the head of an author page, if the author has a website set in their profile. 10 10 11 This plugin, when activated, will add a `<link>` to the `<head>` of an Author 12 page with `rel="me"`, if that author has set a "Website" in their profile. 11 This plugin, when activated, will add a `<link>` to the `<head>` of an Author page with `rel="me"`, if that author has set a "Website" in their profile. 13 12 14 13 This can be useful for things like Mastodon URL verification. … … 16 15 == Example == 17 16 18 If an author has set their website to `https://www.example.com`, this plugin 19 will add the following HTML to the `<head>` on their author page: 17 If an author has set their website to `https://www.example.com`, this plugin will add the following HTML to the `<head>` on their author page: 20 18 21 19 <link rel="me" href="https://social.example/@evelyn" /> 22 20 23 To verify with Mastodon etc., the author would need to use the URL to their 24 Author archive page, typically something like 25 `https://www.your-site.example/author/evelyn`. 26 21 To verify with Mastodon etc., the author would need to use the URL to their Author archive page, typically something like `https://www.your-site.example/author/evelyn`.
Note: See TracChangeset
for help on using the changeset viewer.