[WordPress] 外掛分享: oEmbed Internal Link

首頁外掛目錄 › oEmbed Internal Link
WordPress 外掛 oEmbed Internal Link 的封面圖片
10+
安裝啟用
尚無評分
3726 天前
最後更新
問題解決
WordPress 3.2+ v0.5.0 上架:2011-10-20

內容簡介

透過 oEmbed 輕鬆建立內部連結。

此外掛在 GitHub 上維護。

篩選器插鉤示例

範本的預設篩選器。

<?php
add_filter("oembed-internal-link-template", "my_template");
function my_template($template) {
return '<div class="%class%"><a href="%post_url%">%post_thumb%</a></div>';
}
?>

您可以在範本中使用以下標籤。

%post_id%
%post_url%
%post_thumb%
%post_excerpt%

樣式表 URI 的篩選器。

<?php
add_filter("oembed-internal-link-stylesheet", "my_style");
function my_style($url) {
return 'http://example.com/path/to/style.css';
}
?>

貢獻者

Takayuki Miyauchi

致謝

儘管使用 WordPress 的使用者可以免費、自由地使用此外掛,用於任何目的,但本外掛並不保證。
作者須事先明白,本外掛不提供操作保證和支援。

聯繫方式

Twitter:@miya0001

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.5.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「oEmbed Internal Link」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Easy internal link by oEmbed.
This plugin maintained on GitHub.
filter hooks example
Filter for default template.
%post_thumb%

';
}
?>

You can use tags in the template as below.

%post_id%
%post_url%
%post_thumb%
%post_excerpt%

Filter for stylesheet URI.

Contributors

Takayuki Miyauchi

Credits
This plug-in is not guaranteed though the user of WordPress can freely use this plug-in free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plug-in use are not done at all beforehand.
Contact
twitter @miya0001

延伸相關外掛

文章
Filter
Apply Filters
Mastodon