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 | |
/* | |
* | |
* | |
* Usar mails para el login en vez de usuarios | |
* | |
* | |
*/ | |
remove_filter( 'authenticate', 'wp_authenticate_username_password', 20, 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
jQuery(function($) { | |
$('#content').on('click', '#pagination a', function(e){ | |
e.preventDefault(); | |
var link = $(this).attr('href'); | |
$('#content').fadeOut(500, function(){ | |
$(this).load(link + ' #content', function() { | |
$(this).fadeIn(500); | |
}); | |
}); | |
}); |
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 | |
/* | |
* | |
* | |
* REMOVER WORDPRESS SUBMENU EN ADMIN BAR | |
* | |
* | |
*/ | |
if (!current_user_can('administrator')): |
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 | |
// let editor manage users | |
$edit_editor = get_role('editor'); // Get the user role | |
$edit_editor->add_cap('list_users'); | |
$edit_editor->add_cap('create_users'); | |
$edit_editor->add_cap('delete_users'); | |
// hide admin from user list | |
add_action('pre_user_query','isa_pre_user_query'); |
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
.myElement{ | |
-webkit-font-smoothing: antialiased; | |
} | |
.myElement{ | |
-webkit-text-shadow: rgba(0,0,0,.01) 0 0 1px; | |
} | |
/*Font face?*/ | |
@font-face { |
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('admin_menu','wphidenag'); | |
function wphidenag() { | |
remove_action( 'admin_notices', 'update_nag', 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
<?php | |
/* | |
In this example bfithumb (https://github.com/bfintal/bfi_thumb) is | |
include in functions.php for the thumbnails | |
The folders have the id gallery, name of the gallery and the date in his name. | |
eg: 123_mytitle_02.12.2014 | |
*/ | |
$search = dirname(__FILE__) . "/{foldername}/"; |
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
<div class="bgslide"> | |
<img src="<?php bloginfo('template_url');?>/images/slide1.png" class="active"> | |
<img src="<?php bloginfo('template_url');?>/images/slide2.png"> | |
</div> |
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
window.setTimeout(function(){ | |
window.location.href = "https://www.google.com"; | |
}, 3000); |
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 the_category_unlinked($separator = ' ') { | |
$categories = (array) get_the_category(); | |
$thelist = ''; | |
foreach($categories as $category) { // concate | |
$thelist .= $separator . $category->category_nicename; | |
} | |
echo $thelist; | |
} | |
?> |
OlderNewer