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 | |
// Custom field vars | |
global $sitepress; | |
$current_language = $sitepress->get_current_language(); | |
$default_language = $sitepress->get_default_language(); | |
$sitepress->switch_lang($default_language); | |
$banners = get_field('banner_gallery'); | |
$sitepress->switch_lang($current_language); | |
?> |
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 | |
////////////////////// | |
// SECURE WP_ADMIN // | |
////////////////////// | |
// ---- 1. edit wp-config.php | |
/* tells wordpress what the new directory is, and updates the cookie path. | |
define( 'WP_ADMIN_DIR', 'manager' ); | |
define( 'ADMIN_COOKIE_PATH', '/' ); | |
*/ |
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
// voir ici http://www.createdbypete.com/articles/simple-way-to-find-broken-links-with-wget/ | |
wget --spider -o ~/wget-xxx.log -e robots=on -w 1 -r http://www.xxx | |
// sans les images | |
wget --spider -o ~/wget-xxx.log -e robots=on -w 1 -r --reject=jpg,gif,png,jpeg http://www.xxx |
NewerOlder