Koen
Forum Replies Created
-
Well, I have a backend system that continously up- and downloads posts and related files to a WordPress environment using WP API.
Having the space used information would make it possible to prevent that backend system from overloading, potentially crashing, the site.
Regards, Koen
Forum: Fixing WordPress
In reply to: Why can’t I update a plugin review?I can’t even find my review for https://www.ads-software.com/support/plugin/cookie-notice/reviews/
When I try to edit the review I made 4 years and 3 months ago, I get several error messages:
In red: “Your post is being held for moderation by our automated system and will be manually reviewed by a volunteer as soon as possible.No action is needed on your part at this time, and you do not need to resubmit your message.”
In orange: “This topic is marked as closed to new replies, however your posting capabilities still allow you to reply.
This topic is marked as spam.”Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] What happened to frontend_admin/save_post?Shabti,
Just upgraded to 3.18.8 and my snippets seem to be working fine.
Thak you for the effort.
Much appreciated.
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] What happened to frontend_admin/save_post?Maybe I should explain the process in which the form is used.
I have a custom post type with a number of fields that need to be verified and some fields that should be updated behind the scenes after form submission.The form is part of a verification process in which one logged in user checks visible fields and updates them if required.
Next, the same post is presented to a second user with the same purpose, i.e. verifying data is correct.
Kind of the four eyes principal.So even if data in the form, hence nothing in any field of the post, changed, I want to set some fields for tracking purposes using above snippet upon submission of the form.
PS. Thank you for the tips.
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] What happened to frontend_admin/save_post?I’m updating ACF fields that are not in the form, but are part of the same custom post type as the fields in the form.
But if they should be, but hidden, that can be changed.
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] What happened to frontend_admin/save_post?Shabti,
Thank you for helping out.
Here is my (redacted) snippet:
function my_acf_save_post( $form, $post_id ) { $user = wp_get_current_user(); $values = get_field('my_status', $post_id); remove_action('frontend_admin/save_post','my_acf_save_post', 10); if ($values == 'New') { update_field('my_status', 'Processed', $post_id); update_field('my_processed_user', $user, $post_id); wp_update_post( array( 'ID' => $post_id,'post_status' => 'draft' ) ); } elseif ($values == 'Processed') { update_field('my_status', 'Completed', $post_id); update_field('my_completed_user', $user, $post_id); wp_update_post( array( 'ID' => $post_id,'post_status' => 'private' ) ); } add_action('frontend_admin/save_post','my_acf_save_post', 10, 2); } add_action('frontend_admin/save_post','my_acf_save_post', 10, 2);
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] What happened to frontend_admin/save_post?Correction. Probaly worked up to 3.18.4 as per changelog of 3.18.6: “Tweeked submission records to only hold updated or new data.”
Reinstalled 3.18.4.
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] What happened to frontend_admin/save_post?Upon submitting my form, frontend_admin/save_post no longer kicks in if post data in the form has not changed.
However, I need it to run as I need to update fields in my post that are not part of the form.
This worked up to version 3.18.6
Forum: Plugins
In reply to: [Debug Log Manager] Breaks when install path changesTotally agree.
Add option to remove settings from database when uninstalling plugin so a re-install fixes it.
Thanks, that makes more sense.
Well, then let me request a feature update as logs should be round robin with just oldest data being removed.
Shouldn’t be that hard if using a database for this logging.Stoyan,
You said: cleared every 12 days.Meaning the log starts from zero every 12 days?
Or entries older then 12 days are cleared?Big difference when troubleshooting issues!
I guess you mean log entries older than 4 days are deleted?
Also error after updating:
Warning: Use of undefined constant OMGF_DEBUG_MODE - assumed 'OMGF_DEBUG_MODE' (this will throw an Error in a future version of PHP) in */wp-content/plugins/host-webfonts-local/includes/class-omgf.php on line 375
Forum: Plugins
In reply to: [WooCommerce] WC -Your store today- not showing correct infoThank you for the pointers.
After clearing some WooCommerce caches and re-importing all WC analytics data, there is no longer a name mentioned after the order.Seems to be fixed now.