Plugin Directory

Changeset 2124737


Ignore:
Timestamp:
07/17/2019 03:42:27 PM (7 years ago)
Author:
carllockett3
Message:

Update version 2.1.4.2

Location:
auto-post-woocommerce-products/trunk
Files:
215 added
1 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • auto-post-woocommerce-products/trunk/README.txt

    r2122132 r2124737  
    55Requires at least: 5.0
    66Tested up to: 5.2.2
    7 Stable tag: 2.1.4.1
     7Stable tag: 2.1.4.2
    88Requires PHP at least: 5.6.35 Recommended 7.2
    99WC requires at least: 3.3.0
     
    7676
    7777== Changelog ==
     78= 2.1.4.2 =
     79* 17-JUL-2019
     80* Corrected issue for posts on Twitter showing as url encoded.
     81* Corrected a few other minor issues.
     82
    7883= 2.1.4.1 =
    7984* 12-JUL-2019
  • auto-post-woocommerce-products/trunk/admin/apwp-functions-admin.php

    r2122132 r2124737  
    2121}
    2222
    23 require_once APWP_INCLUDES_PATH . 'class-apwp-cron-functions.php';
    2423/**
    2524 * Get WooCommerce version number
     
    14481447    $_labels = [
    14491448        array(
    1450         'frequency0' => $labels->schedule_labels['pause'],
     1449        'frequency0' => $labels->schedule_labels['pause_schedule'],
    14511450        'name'       => 'pause_schedule',
    14521451    ),
     
    14561455    ),
    14571456        array(
    1458         'frequency24' => $labels->schedule_labels['every24'],
     1457        'frequency24' => $labels->schedule_labels['every24hours'],
    14591458        'name'        => 'every24hours',
    14601459    ),
    14611460        array(
    1462         'frequency12' => $labels->schedule_labels['every12'],
     1461        'frequency12' => $labels->schedule_labels['every12hours'],
    14631462        'name'        => 'every12hours',
    14641463    ),
    14651464        array(
    1466         'frequency8' => $labels->schedule_labels['every8'],
     1465        'frequency8' => $labels->schedule_labels['every8hours'],
    14671466        'name'       => 'every8hours',
    14681467    ),
    14691468        array(
    1470         'frequency7' => $labels->schedule_labels['every7'],
     1469        'frequency7' => $labels->schedule_labels['every7hours'],
    14711470        'name'       => 'every7hours',
    14721471    ),
    14731472        array(
    1474         'frequency6' => $labels->schedule_labels['every6'],
     1473        'frequency6' => $labels->schedule_labels['every6hours'],
    14751474        'name'       => 'every6hours',
    14761475    ),
    14771476        array(
    1478         'frequency5' => $labels->schedule_labels['every5'],
     1477        'frequency5' => $labels->schedule_labels['every5hours'],
    14791478        'name'       => 'every5hours',
    14801479    ),
    14811480        array(
    1482         'frequency4' => $labels->schedule_labels['every4'],
     1481        'frequency4' => $labels->schedule_labels['every4hours'],
    14831482        'name'       => 'every4hours',
    14841483    ),
    14851484        array(
    1486         'frequency3' => $labels->schedule_labels['every3'],
     1485        'frequency3' => $labels->schedule_labels['every3hours'],
    14871486        'name'       => 'every3hours',
    14881487    ),
    14891488        array(
    1490         'frequency2' => $labels->schedule_labels['every2'],
     1489        'frequency2' => $labels->schedule_labels['every2hours'],
    14911490        'name'       => 'every2hours',
    14921491    ),
     
    14961495    ),
    14971496        array(
    1498         'frequency30' => $labels->schedule_labels['every30'],
     1497        'frequency30' => $labels->schedule_labels['every30min'],
    14991498        'name'        => 'every30min',
    15001499    )
  • auto-post-woocommerce-products/trunk/admin/apwp-schedule-tab.php

    r2122132 r2124737  
    1515 * Created    Monday, Jun-17-2019 at 10:33:42
    1616 */
    17 /**
    18  * Includes
    19  */
    20 require_once APWP_INCLUDES_PATH . 'class-apwp-cron-functions.php';
    2117/**
    2218 * Display the cron schedule tab
     
    609605   
    610606    $next = 0;
    611     $scheds = wp_get_schedules();
    612607   
    613608    if ( 'pause_schedule' !== $sched ) {
     609        update_option( 'apwp_schedule_selection', $sched );
     610        $scheds = wp_get_schedules();
    614611        $interval = $scheds[$sched]['interval'];
    615612        $next = time() + $interval;
     
    621618   
    622619    update_option( 'apwp_next_time_cron_runs', $next );
    623     update_option( 'apwp_schedule_selection', $sched );
    624620    // set transient to update the next cron time once updated in WordPress.
    625621    set_transient( 'apwp_cron_check', 'ok', 2 * MINUTE_IN_SECONDS );
  • auto-post-woocommerce-products/trunk/admin/auto-post-woocommerce-products-cron.php

    r2122132 r2124737  
    3131 * @return mixed
    3232 */
    33 class Apwp_Auto_Cron {
     33class Apwp_Cron {
    3434
    3535    /**
     
    4646     * To access our Short links class for Bitly link
    4747     *
    48      * @var    Short_Links
     48     * @var    Apwp_Short_Links
    4949     * @since  1.0.0
    5050     *
     
    102102    public function __construct() {
    103103        $this->labels     = new Apwp_Labels();
    104         $this->click_data = new Short_Links();
     104        $this->click_data = new Apwp_Short_Links();
    105105        $this->product    = new WC_Product_Factory();
    106106        $posted           = get_option( 'atwc_products_posted' );
     
    127127     * @return void
    128128     */
    129     public function apwp_run_cron( $auto ) {
     129    public function apwp_run_auto_cron( $auto ) {
    130130        if ( empty( $this->get_in_cue_array() ) ) {
    131131            $this->set_in_cue_array( apwp_rebuild_products_array() );
     
    282282        }
    283283        $_title = $sh_desc . $_on_sale;
    284         $status = urlencode_deep( $_title ) . ' ' . $my_hash_tag . ' ' . $url;
     284        $status = $_title . ' ' . $my_hash_tag . ' ' . $url;
    285285        update_option( 'atwc_last_tweet', urldecode_deep( $_title . '|^|' . $my_hash_tag . '|^|' . $url ) );
    286286        update_option( 'atwc_last_timestamp', time() );
     
    300300        if ( '' === $url ) {
    301301            $url = get_permalink( $this->get_item_to_tweet() );
    302             if ( apwp_check_local_host() ) {
    303                 apwp_add_to_debug( 'BITLY short link is empty do to LOCALHOST server...using product url.', 'APWCP CRON' );
    304             } else {
     302            if ( ! apwp_check_local_host() ) {
    305303                apwp_add_to_debug( 'BITLY short link for #' . $this->get_item_to_tweet() . ' is empty do to invalid response from Bitly...using product url.', 'APWCP CRON ERROR' );
    306304            }
     
    396394        }
    397395
    398         file_put_contents( __DIR__ . '/post_log', '[<b>' . $time_date . '</b>] TWEETED PROD ID #' . $id . ': ' . urldecode_deep( $status ) . PHP_EOL, FILE_APPEND | LOCK_EX );
     396        file_put_contents( __DIR__ . '/post_log', '[<b>' . $time_date . '</b>] TWEETED PROD ID #' . $id . ': ' . $status . PHP_EOL, FILE_APPEND | LOCK_EX );
     397        apwp_add_to_debug( 'TWITTER post sent successfully.', 'APWCP CRON' );
    399398        return true;
    400399    }
     
    418417        }
    419418
    420         file_put_contents( __DIR__ . '/post_log', '[<b>' . $time_date . '</b>] {localhost} TWEETED PROD ID #' . $this->get_item_to_tweet() . ': ' . urldecode_deep( $status ) . PHP_EOL, FILE_APPEND | LOCK_EX );
     419        file_put_contents( __DIR__ . '/post_log', '[<b>' . $time_date . '</b>] {localhost} TWEETED PROD ID #' . $this->get_item_to_tweet() . ': ' . $status . PHP_EOL, FILE_APPEND | LOCK_EX );
    421420        apwp_trim_log_to_length( __DIR__ . '/post_log', 0, 75 );
    422421        apwp_trim_log_to_length( __DIR__ . '/debug.log', 0, 200 );
     
    427426
    428427        apwp_set_onetime_cron( [ 'data', 'rebuild' ] );
     428        apwp_add_to_debug( 'TWITTER simulated post completed.', 'APWCP CRON' );
    429429    }
    430430
  • auto-post-woocommerce-products/trunk/admin/auto-post-woocommerce-products-tabs.php

    r2122132 r2124737  
    102102    ];
    103103   
    104     if ( !get_transient( 'apwp_prod_list_data' ) ) {
    105         delete_transient( 'apwp_prod_list_data_check' );
     104    if ( !get_transient( 'apwp_prod_list_data_check' ) ) {
     105        apwp_set_onetime_cron( [ 'data' ] );
    106106        unset( $tab_data['inventory'] );
    107107    }
  • auto-post-woocommerce-products/trunk/admin/class-auto-post-woocommerce-products-admin.php

    r2122132 r2124737  
    170170        include 'includes/class-apwp-labels.php';
    171171        include 'includes/apwp-inventory-update-functions.php';
     172        include 'includes/class-apwp-cron-functions.php';
    172173    }
    173174   
  • auto-post-woocommerce-products/trunk/admin/includes/apwp-check-setup.php

    r2122132 r2124737  
    1919 * Includes
    2020 */
    21 require_once 'class-apwp-cron-functions.php';
    2221require_once APWP_INCLUDES_PATH . 'class-apwp-short-links.php';
    2322
  • auto-post-woocommerce-products/trunk/admin/includes/apwp-dashboard-widget.php

    r2122132 r2124737  
    1919 */
    2020require_once 'apwp-check-setup.php';
    21 require_once 'class-apwp-cron-functions.php';
    2221
    2322if ( !defined( 'ABSPATH' ) ) {
  • auto-post-woocommerce-products/trunk/admin/includes/apwp-list-table-functions.php

    r2122132 r2124737  
    15651565    $value = '';
    15661566   
    1567     if ( taxonomy_exists( esc_attr( str_replace( 'attribute_', '', $attribute ) ) ) ) {
     1567    if ( taxonomy_exists( str_replace( 'attribute_', '', $attribute ) ) ) {
    15681568        $term = get_term_by( 'slug', $slug, str_replace( 'attribute_', '', $attribute ) );
    1569         if ( !is_wp_error( $term ) ) {
    1570             $value = $term->name;
     1569        if ( is_object( $term ) && !is_wp_error( $term ) ) {
     1570           
     1571            if ( $term->name ) {
     1572                $value = $term->name;
     1573            } else {
     1574                $error_string = $term->get_error_message();
     1575                apwp_add_to_debug( $error_string );
     1576                return '';
     1577            }
     1578       
    15711579        }
    15721580    } else {
     
    16791687    $result = [];
    16801688    $discontinued = 'unchecked';
     1689    if ( empty($items) ) {
     1690        return [];
     1691    }
    16811692    foreach ( $items as $product_id ) {
    16821693        $product = $_products->get_product( $product_id );
  • auto-post-woocommerce-products/trunk/admin/includes/apwp-quick-edit.php

    r2122132 r2124737  
    3131{
    3232    /**
    33      * Access to APWCP Short_links class for bitly short links
    34      *
    35      * @var Short_links
     33     * Access to Apwp_Short_links class for bitly short links
     34     *
     35     * @var Apwp_Short_links
    3636     */
    3737    private  $clickdata ;
     
    7777        global  $apwp_qe_errors ;
    7878        $this->label = new Apwp_Labels();
    79         $this->clickdata = new Short_Links();
     79        $this->clickdata = new Apwp_Short_Links();
    8080        $this->prod = new WC_Product_factory();
    8181        $this->theme = apwp_get_admin_colors( false );
     
    9090       
    9191        }
    92        
    93         if ( null === $this->data ) {
    94             $apwp_qe_errors->add( 'apwp_info', __( 'Product Edit INFO:', 'auto-post-woocommerce-products' ), $this->label->product_list_labels['refresh-message'] );
    95             ?>
    96         <script>
    97             setTimeout(function() {
    98             window.location.reload(true);
    99             }, 4000);
    100         </script>
    101             <?php
    102         }
    103    
    10492    }
    10593   
     
    30933081    {
    30943082       
    3095         if ( $this->post_array['excerpt'] ) {
     3083        if ( array_key_exists( 'excerpt', $this->post_array ) ) {
    30963084            $excerpt = filter_var( $this->post_array['excerpt'], FILTER_SANITIZE_STRING );
    30973085            $my_post = [
  • auto-post-woocommerce-products/trunk/admin/includes/class-apwp-cron-functions.php

    r2122132 r2124737  
    8787}
    8888// Hook into WP Cron to run postings.
    89 add_filter( 'cron_schedules', 'atwc_add_schedules' );
     89add_filter( 'cron_schedules', 'apwp_add_schedules' );
    9090add_action( 'auto_post_woo_prod_cron', 'apwp_run_cron' );
    9191/**
     
    9999function apwp_run_cron( $auto = true )
    100100{
    101     $cron = new Apwp_Auto_Cron();
    102     $cron->apwp_run_cron( $auto );
     101    $cron = new Apwp_Cron();
     102    $cron->apwp_run_auto_cron( $auto );
    103103    // Are we auto posting.
    104104}
     
    111111 * @return void
    112112 */
    113 function deactivate_apwp_cron()
     113function apwp_deactivate_apwp_cron()
    114114{
    115115    $timestamp = wp_next_scheduled( 'auto_post_woo_prod_cron' );
     
    140140function apwp_enable_twitter_auto_post()
    141141{
    142     $click_data = new Short_Links();
     142    $click_data = new Apwp_Short_Links();
    143143    $click_data->set_bitly_array();
    144144    return true;
     
    149149 *
    150150 * @param array $schedules Cron schedules for auto posting products.
    151  * @since  1.0.0
     151 * @since  2.1.4.2
    152152 *
    153153 * @return array
    154154 */
    155 function atwc_add_schedules( $schedules )
     155function apwp_add_schedules( $schedules )
    156156{
    157157    $labels = new Apwp_Labels();
    158     $schedules['every24hours'] = array(
    159         'interval' => 24 * 60 * 60,
    160         'display'  => $labels->schedule_labels['every24'],
     158    $current_schedule = get_option( 'apwp_schedule_selection' );
     159    $schedules['every15min'] = array(
     160        'interval' => 15 * MINUTE_IN_SECONDS,
     161        'display'  => $labels->schedule_labels['every15min'],
    161162    );
    162     $schedules['every12hours'] = array(
    163         'interval' => 12 * 60 * 60,
    164         'display'  => $labels->schedule_labels['every12'],
    165     );
    166     $schedules['every8hours'] = array(
    167         'interval' => 8 * 60 * 60,
    168         'display'  => $labels->schedule_labels['every8'],
    169     );
    170     $schedules['every7hours'] = array(
    171         'interval' => 7 * 60 * 60,
    172         'display'  => $labels->schedule_labels['every7'],
    173     );
    174     $schedules['every15min'] = array(
    175         'interval' => 15 * 60,
    176         'display'  => $labels->schedule_labels['every15'],
    177     );
     163    if ( false === $current_schedule || 'pause_schedule' === $current_schedule ) {
     164        return $schedules;
     165    }
     166    $apwp_schedules = [
     167        'every24hours' => 24,
     168        'every12hours' => 12,
     169        'every8hours'  => 8,
     170        'every7hours'  => 7,
     171        'every6hours'  => 6,
     172        'every5hours'  => 5,
     173        'every4hours'  => 4,
     174        'every3hours'  => 3,
     175        'every2hours'  => 2,
     176        'hourly'       => 1,
     177        'every30min'   => 30,
     178    ];
     179   
     180    if ( array_key_exists( $current_schedule, $apwp_schedules ) ) {
     181        $my_interval = $apwp_schedules[$current_schedule];
     182       
     183        if ( 30 !== $my_interval ) {
     184            $schedules[$current_schedule] = array(
     185                'interval' => $apwp_schedules[$current_schedule] * HOUR_IN_SECONDS,
     186                'display'  => $labels->schedule_labels[$current_schedule],
     187            );
     188        } else {
     189            $schedules[$current_schedule] = array(
     190                'interval' => $apwp_schedules[$current_schedule] * MINUTE_IN_SECONDS,
     191                'display'  => $labels->schedule_labels[$current_schedule],
     192            );
     193        }
     194   
     195    }
     196   
    178197    return $schedules;
    179198}
  • auto-post-woocommerce-products/trunk/admin/includes/class-apwp-labels.php

    r2122132 r2124737  
    142142    private function set_quick_start_updates_array() {
    143143        $labels = [
    144             '1' => __( 'Added image to the next auto post item on the schedule tab.', 'auto-post-woocommerce-products' ),
    145             '2' => __( 'Corrected a couple of minor issues.', 'auto-post-woocommerce-products' ),
     144            '1' => __( 'Corrected issue for posts on Twitter showing as url encoded.', 'auto-post-woocommerce-products' ),
     145            '2' => __( 'Corrected a few other minor issues.', 'auto-post-woocommerce-products' ),
    146146
    147147        ];
     
    12771277            'disabled-cron'             => __( 'Disabling CRON schedule. . .', 'auto-post-woocommerce-products' ),
    12781278            'discount'                  => __( 'discount', 'auto-post-woocommerce-products' ),
    1279             'every12'                   => __( 'Every 12 hours', 'auto-post-woocommerce-products' ),
    1280             'every15'                   => __( 'Every 15 minutes', 'auto-post-woocommerce-products' ),
    1281             'every2'                    => __( 'Every 2 hours', 'auto-post-woocommerce-products' ),
    1282             'every24'                   => __( 'Every 24 hours', 'auto-post-woocommerce-products' ),
    1283             'every3'                    => __( 'Every 3 hours', 'auto-post-woocommerce-products' ),
    1284             'every30'                   => __( 'Every 30 minutes', 'auto-post-woocommerce-products' ),
    1285             'every4'                    => __( 'Every 4 hours', 'auto-post-woocommerce-products' ),
    1286             'every5'                    => __( 'Every 5 hours', 'auto-post-woocommerce-products' ),
    1287             'every6'                    => __( 'Every 6 hours', 'auto-post-woocommerce-products' ),
    1288             'every7'                    => __( 'Every 7 hours', 'auto-post-woocommerce-products' ),
    1289             'every8'                    => __( 'Every 8 hours', 'auto-post-woocommerce-products' ),
     1279            'every12hours'              => __( 'Every 12 hours', 'auto-post-woocommerce-products' ),
     1280            'every15min'                => __( 'Every 15 minutes', 'auto-post-woocommerce-products' ),
     1281            'every2hours'               => __( 'Every 2 hours', 'auto-post-woocommerce-products' ),
     1282            'every24hours'              => __( 'Every 24 hours', 'auto-post-woocommerce-products' ),
     1283            'every3hours'               => __( 'Every 3 hours', 'auto-post-woocommerce-products' ),
     1284            'every30min'                => __( 'Every 30 minutes', 'auto-post-woocommerce-products' ),
     1285            'every4hours'               => __( 'Every 4 hours', 'auto-post-woocommerce-products' ),
     1286            'every5hours'               => __( 'Every 5 hours', 'auto-post-woocommerce-products' ),
     1287            'every6hours'               => __( 'Every 6 hours', 'auto-post-woocommerce-products' ),
     1288            'every7hours'               => __( 'Every 7 hours', 'auto-post-woocommerce-products' ),
     1289            'every8hours'               => __( 'Every 8 hours', 'auto-post-woocommerce-products' ),
    12901290            'hashtags-used'             => __( 'Hashtags used', 'auto-post-woocommerce-products' ),
    12911291            'hourly'                    => __( 'Every hour', 'auto-post-woocommerce-products' ),
     
    13031303            'on-sale'                   => __( 'ON SALE!', 'auto-post-woocommerce-products' ),
    13041304            'parent-product'            => __( 'This is a parent product.', 'auto-post-woocommerce-products' ),
    1305             'pause'                     => __( 'Pause schedule', 'auto-post-woocommerce-products' ),
     1305            'pause_schedule'            => __( 'Pause schedule', 'auto-post-woocommerce-products' ),
    13061306            'post-content'              => __( 'Post content', 'auto-post-woocommerce-products' ),
    13071307            'posting-schedule'          => __( 'Posting schedule', 'auto-post-woocommerce-products' ),
  • auto-post-woocommerce-products/trunk/admin/includes/class-apwp-short-links.php

    r2122132 r2124737  
    1919 */
    2020require_once APWP_PLUGIN_PATH . 'src/Bitly/bitly-new.php';
    21 register_deactivation_hook( __FILE__, 'deactivate_bitly_update_data' );
    22 register_activation_hook( __FILE__, 'activate_bitly_update_data' );
    23 add_action( 'apwc_update_bitly_data', 'apwp_get_bitly_clicks_table__premium_only' );
    24 add_action( 'apwp_update_total_clicks', array( 'Short_Links', 'apwp_get_ttl_clicks__premium_only' ) );
     21register_deactivation_hook( __FILE__, 'apwp_deactivate_bitly_update_data' );
     22register_activation_hook( __FILE__, 'apwp_activate_bitly_update_data' );
     23add_action( 'apwp_update_bitly_data', 'apwp_get_bitly_clicks_table__premium_only' );
     24add_action( 'apwp_update_total_clicks', array( 'Apwp_Short_Links', 'apwp_get_ttl_clicks__premium_only' ) );
    2525/**
    2626 * Functions to interact with Bitly API for link shortening and statistics
     
    3030 * @return mixed
    3131 */
    32 class Short_Links
     32class Apwp_Short_Links
    3333{
    3434    /**
     
    5959       
    6060        if ( !$this->bit_token || '' === $this->bit_token ) {
    61             apwp_add_to_debug( 'BITLY token not found. - ' . __CLASS__ . '->' . __FUNCTION__ . ':' . __LINE__, 'auto-post-woocommerce-products' );
     61            apwp_add_to_debug( 'BITLY token not found.' );
    6262            return;
    6363        }
     
    8585       
    8686        if ( 'empty' === $s_url ) {
    87             apwp_add_to_debug( 'BITLY DID NOT RETURN A PROPER RESPONSE. - ' . __FUNCTION__ . ':' . __LINE__, 'auto-post-woocommerce-products' );
     87            apwp_add_to_debug( 'BITLY DID NOT RETURN A PROPER RESPONSE.' );
    8888            $sh_url = '';
    8989            // If bitly error then use the full url.
     
    9292       
    9393        if ( 'no_token' === $s_url ) {
    94             apwp_add_to_debug( 'Missing Bitly token! - ' . __FUNCTION__ . ':' . __LINE__, 'auto-post-woocommerce-products' );
     94            apwp_add_to_debug( 'BITLY token not found.' );
    9595            $sh_url = '';
    9696        }
     
    121121        $result = $bitly->shorten( $long_url );
    122122        if ( isset( $result['data'] ) ) {
    123             apwp_add_to_debug( 'BITLY Message: ' . $result['data'] . ' - ' . __FUNCTION__ . ':' . __LINE__, 'auto-post-woocommerce-products' );
     123            apwp_add_to_debug( 'BITLY Message: ' . $result['data'] );
    124124        }
    125125       
     
    140140function apwp_rebuild_bitlink_array()
    141141{
    142     $click_data = new Short_Links();
     142    $click_data = new Apwp_Short_Links();
    143143    $ids = get_transient( 'apwp_prod_list_data' );
    144144    $data = [];
     
    173173{
    174174    $local_host = apwp_check_local_host();
    175     $click_data = new Short_Links();
     175    $click_data = new Apwp_Short_Links();
    176176    $link = '';
    177177   
  • auto-post-woocommerce-products/trunk/auto-post-woocommerce-products.php

    r2122132 r2124737  
    1111 * Description: APWCP is a powerful tool to assist you in managing your WooCommerce inventory and advertising your products on social media.
    1212 * Tested up to: 5.2.2
    13  * Version: 2.1.4.1
     13 * Version: 2.1.4.2
    1414 * Author: Carl Lockett III, CIL Creations
    1515 * Author URI: http://www.cilcreations.com/apwp
     
    3232
    3333require plugin_dir_path( __FILE__ ) . 'includes/class-auto-post-woocommerce-products.php';
    34 define( 'APWP_VERSION', '2.1.4.1' );
     34define( 'APWP_VERSION', '2.1.4.2' );
    3535register_activation_hook( __FILE__, 'apwp_activate' );
    3636register_deactivation_hook( __FILE__, 'apwp_deactivate' );
  • auto-post-woocommerce-products/trunk/includes/class-auto-post-woocommerce-products-deactivator.php

    r2121574 r2124737  
    3535        wp_unschedule_event( $timestamp, 'auto_post_woo_prod_cron' );
    3636        wp_clear_scheduled_hook( 'auto_post_woo_prod_cron' );
    37         remove_filter( 'cron_schedules', 'atwc_add_schedules' );
     37        remove_filter( 'cron_schedules', 'apwp_add_schedules' );
    3838        $timestamp = wp_next_scheduled( 'apwp_run_background_proc' );
    3939        wp_unschedule_event( $timestamp, 'apwp_run_background_proc' );
Note: See TracChangeset for help on using the changeset viewer.