add_filter( 'cp_email_user_ad_declined', array( $this, 'email_user_ad_declined' ), 20, 2 );
/* ad declined */
array(
'label' => __( 'Ad declined subject template', CP_CUSTOM_EMAILS_TD ),
'type' => 'text',
'name' => 'ad_declined_subj_tpl',
'default' => 'Your ad was declined',
),
array(
'label' => __( 'Ad declined template', CP_CUSTOM_EMAILS_TD ),
'type' => 'wysiwyg',
'name' => 'ad_declined_tpl',
'options' => $wp_editor_options,
'default' => 'Hello %author%,
Your ad listing was declined.
Title: %title%
Category: %category%
Url: %url%
Regards,
%blog_name%
%site_url%'
),
function email_user_ad_declined( $email, $post ) {
$subject = $this->get_option( 'ad_declined_subj_tpl' );
$body = $this->get_option( 'ad_declined_tpl' );
$args = $this->get_template_variables();
$email = apply_filters( 'cpcm_apply_template_variables', $email, $post->ID, $subject, $body, $args );
return $email;
}
There are currently 1 users browsing this thread. (0 members and 1 guests)