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
function is_old_post($post_id=null){ | |
$days = 15; | |
global $wp_query; | |
if(is_single() || is_page()) { | |
if(!$post_id) { | |
$post_id = $wp_query->post->ID; | |
} | |
$current_date = time(); | |
$offset = $days *60*60*24; | |
$post_id = get_post($post_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 | |
function pp() { | |
$msg = __v_build_message(func_get_args()); | |
echo '<pre style="white-space:pre-wrap; text-align: left; '. | |
'font: normal normal 11px/1.4 menlo, monaco, monospaced; '. | |
'background: white; color: black; padding: 5px;">'.$msg.'</pre>'; | |
} | |
function dp() { | |
$msg = __v_build_message(func_get_args(), 'var_dump'); | |
echo '<pre style="white-space:pre-wrap;; text-align: left; '. |