Hi,
I could not find a seeting for having the checkbox checked by default for new posts so I made this...
/***************************************************
* ADD NOTIFICATION CHECKBOX TO 'PUBLISH' METABOX
* *************************************************/
function nys_Box(){
global $metaSlug;
global $pagenow;
echo '<div id="nySubscribeBox" style="position:relative; padding: 8px 10px; border-bottom:1px solid #DFDFDF">';
if(in_array( $pagenow, array( 'post-new.php' ) ))
{
echo '<label><input type="checkbox" checked value="1" name="'. $metaSlug .'" /> ';
}
else
{
echo '<label><input type="checkbox" value="1" name="'. $metaSlug .'" /> ';
}
_e( 'Notify Subscribers' );
echo '</label> <span style="position:absolute; right: 10px"> <a style="text-decoration:none" href="tools.php?page='. CONST_NYS_SLUG .'">';
_e( 'Settings' );
echo '</a>';
echo ' | '. nys_original_post( __('Help') );
echo '</span></div>';
}
It just checked it the url contains 'post-new.php' and outputs the corresponding HTML.
I think this should be a setting in the plugin.
Also, I'm having the same issue some people is having here: all new subscribers are added with a role of "none". Does it affect if the person gets the email or not? I changed them all to 'Subscriber' just in case...