-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this, exactly? #20
Comments
OK, Part 2. I'm trying to do a slow task after a user registers. Everything works, except that it is not Async. Register.php MyAppPlugin.php:
WP_Async_Setup_Database.php
Everything runs, but not Async. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, great code, thanks!
I'm having some trouble using it, though. Here's a quick test I'm doing:
add_action( 'wp_async_shutdown', [$this, 'testing_async'], 10, 1 );
I expect this to run
public function testing_async()
asynchronously when WordPress be shutting down, right?But this is never called. OK, this didn't work. Let's try the "extend class" approach.
WP_Async_Test.php:
This didn't work either... What am I doing wrong?
The text was updated successfully, but these errors were encountered: