This file contains hidden or 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 | |
/** | |
* All qTranslate Taxonomies! | |
*/ | |
add_action('admin_init', 'qtranslate_edit_taxonomies'); | |
function qtranslate_edit_taxonomies(){ | |
$args = array( |
This file contains hidden or 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('admin_init', 'gallery_disable', 10); | |
function gallery_disable() { | |
$image_set = get_option( 'image_default_link_type' ); | |
if ($image_set !== 'none') { | |
update_option('image_default_link_type', 'none'); | |
} | |
} |
This file contains hidden or 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 class attachment link | |
*/ | |
add_filter('wp_get_attachment_link','add_class_attachment_link',10,1); | |
function add_class_attachment_link($html){ | |
$postid = get_the_ID(); |
This file contains hidden or 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 | |
/* | |
* Load jQuery FancyBox Modal! | |
*/ | |
add_action('wp_enqueue_scripts', 'fancbox_scripts'); | |
function fancbox_scripts() { | |
wp_enqueue_style('fancybox-style', get_template_directory_uri().'/fancybox/jquery.fancybox.css', false ,'2.1.5', 'all' ); | |
wp_enqueue_script('fancybox', get_template_directory_uri().'/fancybox/jquery.fancybox.min.js', array('jquery'),'2.1.51', true ); |
This file contains hidden or 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 | |
/* | |
* WP 3.8 Add CPT Admin icon | |
*/ | |
add_action( 'admin_head', 'cpt_admin_icon' ); | |
function cpt_admin_icon(){ | |
echo ' | |
<style> | |
#adminmenu #menu-posts-project div.wp-menu-image:before { content: "\f100"; } |
This file contains hidden or 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
/** | |
* Controls hover fade effect! | |
* | |
* Change class name -> slider_class_name | |
*/ | |
.bx-controls-direction { | |
opacity: 0; | |
transition: opacity .25s ease-in-out; | |
-moz-transition: opacity .25s ease-in-out; |
This file contains hidden or 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 | |
/** | |
* Change image tag | |
*/ | |
add_filter( 'image_send_to_editor', 'html5_insert_image', 10, 9 ); | |
function html5_insert_image($html, $id, $caption, $title, $align, $url, $size, $alt) { |