alleyinteractive / alleyinteractive/wp-seo

Add Byline Manager plugin support to author-related formatting tags

オープン
#186 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
45
フォーク
13
平均マージ
12日 16時間
マージ済み PR(30日)
5

説明

### Description

Issue #161's MVP requirements call for Byline Manager support alongside Co-Authors Plus support (#159 — CAP-specific, already ticketed). Today, `WP_SEO_Format_Author::get_value()` (`php/default-formatting-tags.php`) only calls `get_the_author()` / `get_the_author_meta( 'display_name', ... )`, filtered through the `the_author` filter for Co-Authors Plus compatibility. It has no awareness of [Byline Manager](https://github.com/alleyinteractive/byline-manager), which stores bylines as its own `Profile`/`TextProfile` models rather than mapping onto WP core author meta, so `get_the_author()` will not reflect Byline Manager's data.

### Use Case

Sites running Byline Manager instead of (or alongside) Co-Authors Plus want the `#author#` formatting tag — and any other author-derived SEO output (e.g. schema/JSON-LD author data, once #12 lands) — to reflect Byline Manager's byline, the same way it already works for CAP.

### Proposed Solution

Byline Manager exposes `Byline_Manager\get_the_byline( $post = null )` as its public template tag (the direct equivalent of `get_the_author()`), and ships its own reference integration for another SEO plugin at `inc/yoast.php` (hooking `wpseo_meta_author`, `wpseo_enhanced_slack_data`, and schema graph filters). Mirror that pattern here:

- In `WP_SEO_Format_Author::get_value()`, prefer `Byline_Manager\get_the_byline()` when the plugin/function is active (`function_exists( '\Byline_Manager\get_the_byline' )`), falling back to the existing `get_the_author()`/CAP-filtered behavior otherwise.
- Consider whether Byline Manager's `Utils::get_byline_entries_for_post()` (returning the full `Profile`/`TextProfile` entries, not just a rendered string) is needed for any future structured-data use (relevant to #12 Schema.org support).

### Related

- #161 (parent MVP tracking issue)
- #159 (Co-Authors Plus support — same formatting tag, different plugin)
- https://github.com/alleyinteractive/byline-manager

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start in php/default-formatting-tags.php at WP_SEO_Format_Author::get_value(), then review Byline Manager’s public get_the_byline() template tag and its inc/yoast.php integration. The author formatting tag should use the Byline Manager value when its function is available and retain the existing get_the_author()/Co-Authors Plus fallback otherwise.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
backend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
70/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。