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
/** | |
* Hide the main editor on specific pages | |
*/ | |
define('EDITOR_HIDE_PAGE_TITLES', json_encode(array())); | |
define('EDITOR_HIDE_PAGE_TEMPLATES', json_encode(array('template-cars.php'))); | |
/** | |
* Hide the main editor on defined pages | |
* |
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
function atz_split_content_at_more(){ | |
// Split the content | |
$content_parts = preg_split('/<span id="more-\d+"><\/span>/i', get_the_content()); | |
// Grab first part of content and apply filters | |
$result['intro'] = apply_filters('the_content', array_shift($content_parts));; | |
// Content has a more part? | |
if(!empty($content_parts)): | |
$result['more'] = apply_filters('the_content', implode($content_parts)); |
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
Replace USERNAME with your wished login-username and hit enter: | |
printf "USERNAME:`openssl passwd -apr1`\n" >> .htpasswd |
NewerOlder