
內容簡介
透過 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
外掛標籤
開發者團隊
原文外掛簡介
Easy internal link by oEmbed.
This plugin maintained on GitHub.
filter hooks example
Filter for default template.
%post_thumb%
