Skip to content

Commit

Permalink
update function name to avoid conflict
Browse files Browse the repository at this point in the history
update function name to avoid conflict if someone uses both the plugins we have
  • Loading branch information
akbansa authored Nov 13, 2024
1 parent fe599a7 commit c2c3459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gumlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function gumlet_plugin_activate()
}

// Register oEmbed provider
function gumlet_oembed_provider() {
function gumlet_oembed_provider_img() {
if ( ! function_exists( 'wp_oembed_add_provider' ) ) {

require_once ABSPATH . WPINC . '/embed.php';
Expand All @@ -65,4 +65,4 @@ function gumlet_oembed_provider() {
wp_oembed_add_provider( '#https?://gumlet\.tv/watch/.*#i', 'https://api.gumlet.com/v1/oembed', true );
}

add_action( 'init', 'gumlet_oembed_provider' );
add_action( 'init', 'gumlet_oembed_provider_img' );

0 comments on commit c2c3459

Please sign in to comment.