action_scheduler_stored_action

action_scheduler_stored_action

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('action_scheduler_stored_action') is found 2 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 133
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
            }
            throw new \RuntimeException( $wpdb->last_error ? $wpdb->last_error : __( 'Database error.', 'woocommerce' ) );
        }
     
        do_action( 'action_scheduler_stored_action', $action_id );
     
        return $action_id;
    } catch ( \Exception $e ) {
        /* translators: %s: error message */
        throw new \RuntimeException( sprintf( __( 'Error saving action: %s', 'woocommerce' ), $e->getMessage() ), 0 );
    }
  • /packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php line 45
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
            $post_array = $this->create_post_array( $action, $scheduled_date );
            $post_id    = $this->save_post_array( $post_array );
            $this->save_post_schedule( $post_id, $action->get_schedule() );
            $this->save_action_group( $post_id, $action->get_group() );
            do_action( 'action_scheduler_stored_action', $post_id );
            return $post_id;
        } catch ( Exception $e ) {
            /* translators: %s: action error message */
            throw new RuntimeException( sprintf( __( 'Error saving action: %s', 'woocommerce' ), $e->getMessage() ), 0 );
        }
    }

See this hook used in plugins: