Skip to content
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

PHP8 compatibilty #32

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
change hook for plugin instance to avoid undefined actionscheduler pr…
…operties
  • Loading branch information
chermant committed Apr 27, 2022
commit ae38f0f8a25f40db73e7493426426ffe2a95f799
2 changes: 1 addition & 1 deletion shoppingfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ function init() {
\WP_CLI::add_command( 'shopping-feed feed-generation', '\\ShoppingFeed\ShoppingFeedWC\Cli\FeedGeneration' );
}

\add_action( 'plugins_loaded', __NAMESPACE__ . '\\init', 100 );
\add_action( 'init', __NAMESPACE__ . '\\init', 100 );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, why have changed this hook ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

Sorry for the response delay. in fact, activating the plugin triggered an error for us. By modifying the delay in which the callback function launches, this solved the problem.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the error message ? Because this is the right hook :)