Beispiel #1
0
function sitepath($type = 'url')
{
    echo get_sitepath($type);
}
function get_filemtime($path)
{
    return filemtime(get_sitepath('directory') . $path);
}
function get_permalink()
{
    global $post;
    global $post_type;
    return get_sitepath('url') . '/' . $post_type . '/' . get_the_slug() . '/';
}