-
Notifications
You must be signed in to change notification settings - Fork 7
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
Hook vp_before_synchronization_{$entityName} not working #152
Comments
I'm listing below all the necessary files: php error log after executing restore-site command:
The file with the action -> wp-content/.versionpress/plugins/wordpress-seo/hooks.php
The versionpress function which contains the "do_action command", placed inside wp-content/plugins/versionpress/src/Synchronizer/Synchronizers.php
You can see that 'EXECUTE ACTION' and "vp_before_synchronization_{$entityName}" are correctly logged. |
Hi @beabri, sorry for delay :-(
|
Hi @pavelevap, don't worry. I tried with This is the schema:
Let me you know if you need anything else. |
Sorry, still no news about it? |
Finally, I hope that I found a cause. Restoring site is run by WP CLI, see function restoreSite(). This function is used without WordPress, but in the end is called function finishRestore() (by WP CLI command Basic part of VersionPress is loaded manually later, but it misses loading I am not sure about the right approach to fix this issue, but you can try to find following line and add Thank you for reporting this problem! |
Hi all,
I want to make an
ALTER TABLE
on a Yoast Seo Meta table before Versionpress DB synchronization, so I created a filehook.php
inside versionpress folderwp-content\.versionpress\plugins\wordpress_seo
, but it seems not to execute code when the action is called.I'm using
vp_before_synchronization_{$entityName}
action.This is the
hooks.php
code:When I execute the
restore_site
command, I readHello world
, but anything else.Am I missing something?
Thanks a lot.
The text was updated successfully, but these errors were encountered: