コード例 #1
0
ファイル: functions.php プロジェクト: davidnwright/truwriter
function truwriter_publish($post)
{
    truwriter_mail_edit_link($post->ID, 'published');
    // Send edit link when published
}
コード例 #2
0
<?php

/* Calls function to generate the email that sends an owner the edit link              */
// get the id parameter from URL
$wid = get_query_var('wid', 0);
// id of post
truwriter_mail_edit_link($wid);