コード例 #1
0
ファイル: customizer.php プロジェクト: musashi0128/wordpress
function wlw_edit_post_link($link, $before, $after)
{
    if (is_wlw_enable()) {
        if (is_user_logged_in()) {
            $query = is_single() ? 'postid' : 'pageid';
            echo $before . '<a href="wlw://' . get_this_site_domain() . '/?' . $query . '=';
            echo the_ID();
            echo '">' . $link . '</a>' . $after;
        }
    }
}
コード例 #2
0
ファイル: functions.php プロジェクト: jun200/wordpress
function wlw_edit_post_link($link, $before, $after)
{
    if (is_wlw_enable()) {
        if (is_user_logged_in()) {
            echo $before . '<a href="wlw://' . get_domain() . '/?postid=';
            echo the_ID();
            echo '">' . $link . '</a>' . $after;
        }
    }
}