WordPress.org

Ready to get started?Download WordPress

Plugin Directory

oEmbed Internal Link

Easy internal link by oEmbed.

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

Tags:

Requires: 3.2 or higher
Compatible up to: 3.4.2
Last Updated: 2012-7-9
Downloads: 350

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.