BACK TO DIRECTORY

oEmbed Internal Link

by Takayuki Miyauchi

0.0
(0 ratings)

Easy internal link by oEmbed.

This plugin maintained on GitHub.

filter hooks example

Filter for default template.

<?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>';
    }
?>

You can use tags in the template as below.

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

Filter for stylesheet URI.

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

Contributors

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

Plugin Details

Active Installs
10
Total Downloads
2,370
Version
0.5.0
Requires WP
3.2
Requires PHP
—
Tested Up To
4.4.34
Added
2011-10-21
Last Updated
2016-01-03 7:43am GMT

Ratings

5
0
4
0
3
0
2
0
1
0

Tags