This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Instagram Frame Embedder | |
Author: Otto | |
*/ | |
wp_embed_register_handler( 'instagram', '#https?://instagr(\.am|am\.com)/p/([^/]+)#i', 'custom_embed_handler_instagram' ); | |
function custom_embed_handler_instagram( $matches, $attr, $url, $rawattr ) { | |
if ( !empty($rawattr['width']) && !empty($rawattr['height']) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function cbscom_embed_register_handler() { | |
wp_embed_register_handler( 'cbscom', '|https?://www.cbs.com/shows/.*|i', 'cbscom_embed_handler' ); | |
} | |
add_action( 'init', 'cbscom_embed_register_handler' ); | |
function cbscom_embed_handler( $matches, $attr, $url, $rawattr ) { | |
global $post, $wp_embed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mlbtv_embed_register_handler() { | |
wp_embed_register_handler( 'mlbtv', '|https?://wapc.mlb.com/play/\?content_id=([0-9]*)?#?|i', 'mlbtv_embed_handler' ); | |
} | |
add_action( 'init', 'mlbtv_embed_register_handler' ); | |
function mlbtv_embed_handler( $matches, $attr, $url, $rawattr ) { | |
if ( !empty($rawattr['width']) && !empty($rawattr['height']) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It’s|It is} pretty worth enough for me. | |
{In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, the | |
{internet|net|web} will be {much more|a lot more} useful than ever before. | |
| | |
I {couldn’t|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I’ll} {right away|immediately} {take hold | |
of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can’t} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you’ve} any? | |
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Allow Private Parents | |
Author: Otto | |
Author URI: http://ottopress.com | |
*/ | |
add_filter('page_attributes_dropdown_pages_args', 'allow_private_page_parents'); | |
function allow_private_page_parents($args) { | |
$args['post_status'] = array( 'publish', 'private' ); |
NewerOlder