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 | |
$iso_array = array( | |
'ABW'=>'Aruba', | |
'AFG'=>'Afghanistan', | |
'AGO'=>'Angola', | |
'AIA'=>'Anguilla', | |
'ALA'=>'Åland Islands', | |
'ALB'=>'Albania', | |
'AND'=>'Andorra', | |
'ARE'=>'United Arab Emirates', |
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 | |
add_action( 'wp_head', 'remove_feeds_from_wp_head', 1 ); | |
/** | |
* Remove feed links from wp_head | |
*/ | |
function remove_feeds_from_wp_head() { | |
// Remove feed links | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); |
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
.ui-datepicker { | |
background-color: #fff; | |
border: 1px solid #66AFE9; | |
border-radius: 4px; | |
box-shadow: 0 0 8px rgba(102,175,233,.6); | |
display: none; | |
margin-top: 4px; | |
padding: 10px; | |
width: 240px; | |
} |
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
/* | |
WpExternalApi class use | |
$api = WpExternalApi::get('url-slug'); | |
will create endpoint at www.example.com/url-slug/json and www.example.com/url-slug/xml | |
$api->set_logic(callback); | |
function callback($input){ |
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: WDS GIF API | |
* Plugin URI: http://webdevstudios.com | |
* Description: Adds a Custom Post Type to store GIFs and an API JSON Endpoint to access GIFs by a tag. | |
* Author: WebDevStudios | |
* Author URI: http://webdevstudios.com | |
* Version: 1.0.0 | |
* License: GPLv2 | |
*/ |
OlderNewer