ActiveDen

Changing the default or extending a shortcode

836 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
marcfolio says

In wordpress is it possible to create a plugin that would cancel/ overwrite the default shortcode or extend a built in short code?

Is that even possible?

For example if you paste the URL of a youtube video or vimeo it embeds the video player.

Or the short code is

[vimeo 240975]

??

7 months ago
2211 posts
  • Has been a member for 1-2 years
  • Exclusive Author
  • Sold between 1 and 100 dollars
  • Bought between 10 and 49 items
  • United States
OrganicBeeMedia says

yes its possible what exactly do you want to override about it? ps. its the embed class located at wp-includes/media.php depending on what you want to do theres a couple of ways to go about modifying it

7 months ago
836 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
marcfolio says

Basically alerter the code that it’s putting in the post. Change it to HTML5 .

7 months ago
by
by
by
by
by