Results 1 to 4 of 4

Thread: Ad declined email

  1. #1
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    859
    Thanks
    300
    Thanked 56 Times in 50 Posts

    Ad declined email

    I managed to include an additional template for Declined Ads but it doesn't seem to send the email.

    I was successful in applying this function while on CP 3.0.5 but looking at your code, I cannot find the Post status function anywhere even though I was able to create a template for Ad declined.

    Can you point me in the right direction?


    PHP Code:
    add_filter'cp_email_user_ad_declined', array( $this'email_user_ad_declined' ), 20); 

    PHP Code:
                /* 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%'
                
    ), 


    PHP Code:
        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;
        } 

  2. #2
    Marketplace Seller roidayan's Avatar
    Join Date
    Apr 2014
    Location
    Israel
    Posts
    1,149
    Thanks
    31
    Thanked 151 Times in 138 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    859
    Thanks
    300
    Thanked 56 Times in 50 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Marketplace Seller roidayan's Avatar
    Join Date
    Apr 2014
    Location
    Israel
    Posts
    1,149
    Thanks
    31
    Thanked 151 Times in 138 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: September 15th, 2017, 11:02 AM
  2. Samcy PayPal payments being declined - SSL issue?
    By scoobyfaith in forum Help Using ClassiPress
    Replies: 12
    Last Post: January 23rd, 2015, 05:01 PM
  3. Replies: 11
    Last Post: November 13th, 2012, 08:13 AM
  4. [TUTORIAL] Email to declined ad poster
    By Fanatic in forum ClassiPress General Discussion
    Replies: 11
    Last Post: February 26th, 2011, 02:01 PM
  5. [SOLVED] Contact owner email wont use the person email - admin email instead
    By eberdocarmo in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: November 17th, 2010, 06:55 PM