2017 © Pedro Peláez
 

library wp-oembed-blog-card

A library for WordPress oEmbed Blog Card.

image

inc2734/wp-oembed-blog-card

A library for WordPress oEmbed Blog Card.

  • Friday, July 27, 2018
  • by inc2734
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,415 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 23 Versions
  • 27 % Grown

The README.md

WP oEmbed Blog Card

CI Latest Stable Version License, (*1)

Install

$ composer require inc2734/wp-oembed-blog-card

How to use

<?php
new \Inc2734\WP_OEmbed_Blog_Card\Bootstrap();

Then just copy and paste the URL into the article!, (*2)

  • Data used for blog cards will be cached.
  • The cache is updated when you open the post edit screen.
  • On the display screen url is converted to blog card with ajax.

Filter hooks

inc2734_wp_oembed_blog_card_block_editor_template

/**
 * Customize template for block editor
 *
 * @param string $template
 * @param string $url
 * @return string
 */
add_filter(
    'inc2734_wp_oembed_blog_card_block_editor_template',
    function( $template, $url ) {
        return $template;
    },
    10,
    2
);

inc2734_wp_oembed_blog_card_loading_template

/**
 * Customize template for loading
 *
 * @param string $template
 * @param string $url
 * @return string
 */
add_filter(
    'inc2734_wp_oembed_blog_card_loading_template',
    function( $template, $url ) {
        return $template;
    },
    10,
    2
);

inc2734_wp_oembed_blog_card_url_template

/**
 * Customize url template
 *
 * @param string $template
 * @param string $url
 * @return string
 */
add_filter(
    'inc2734_wp_oembed_blog_card_url_template',
    function( $template, $url ) {
        return $template;
    },
    10,
    2
);

inc2734_wp_oembed_blog_card_blog_card_template

/**
 * Customize blog card template
 *
 * @param string $template
 * @param array $cache
 * @return string
 */
add_filter(
    'inc2734_wp_oembed_blog_card_blog_card_template',
    function( $template, $cache ) {
        return $template;
    },
    10,
    2
);

inc2734_wp_oembed_blog_card_cache_directory

/**
 * Customize cache directory
 *
 * @param string $directory
 * @return string
 */
add_filter(
    'inc2734_wp_oembed_blog_card_cache_directory',
    function( $directory ) {
        return $directory;
    }
);

The Versions

22/07 2018

4.0.3

4.0.3.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

20/07 2018

4.0.2

4.0.2.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

18/07 2018

4.0.1

4.0.1.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

18/07 2018

4.0.0

4.0.0.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

04/07 2018

3.0.2

3.0.2.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

06/06 2018

3.0.1

3.0.1.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

29/03 2018

3.0.0

3.0.0.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

16/03 2018

2.1.0

2.1.0.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

04/03 2018

2.0.1

2.0.1.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.6

 

The Development Requires

04/03 2018

2.0.0

2.0.0.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

11/12 2017

1.0.4

1.0.4.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

03/10 2017

1.0.3

1.0.3.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

01/10 2017

1.0.2

1.0.2.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

01/10 2017

1.0.1

1.0.1.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

29/09 2017

1.0.0

1.0.0.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

23/07 2017

0.2.4

0.2.4.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

30/06 2017

0.2.3

0.2.3.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

29/06 2017

0.2.2

0.2.2.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

15/06 2017

0.2.1

0.2.1.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3

 

The Development Requires

15/06 2017

0.2.0

0.2.0.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3

 

The Development Requires

15/06 2017

0.1.0

0.1.0.0

A library for WordPress oEmbed Blog Card.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3

 

The Development Requires