ChrisL
Forum Replies Created
-
Forum: Plugins
In reply to: [reCAPTCHA for WooCommerce] Scripts unnecessarily loading on pagesI agree. ReCAPTCHA scripts are loading on every page, regardless of the plugin settings. This needs correcting.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Fatal ErrorThat worked. Thank you for the advice.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Fatal ErrorI’ve afraid I had already tried your suggested solution and it did not work. I have just tried again and still no success.
Note: I am unable to follow your specific steps because the root of the network is inaccessible at present due to the fatal error. For that reason I carried out the plugin update via the cPanel file manager.
Forum: Plugins
In reply to: [MainWP Dashboard: WordPress Management without the SaaS] php warningsI’m seeing the same PHP warnings. Let’s hope it is resolved in the next update.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Replacing Ajax-updated Month TextYou can ignore this post. I’ve resolved the issue. It wasn’t a problem with AJAX but a problem with my regex.
Oh. That’s good to know. Indeed the Editors have the elevated right to manage users, so that’ll be the reason.
Thank you very much for explaining that. I’ll continue using admin css to suppress the message.
Thanks again!
Hi @cyn92
Wow. That feature is properly buried!
I recommend moving it to a more prominent position (e.g. under Settings) and also offering the option of a cronjob to clear past/abandoned appointments older than a month or so.
Thank you all the same for your prompt and helpful reply.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Bold Billing Company NamePerfect. Thank you very much for the prompt reply!
Thank you. That worked. Much appreciated!
Thanks for the prompt response.
When I use the first example code, the invoice always displays the title ‘Purchase Order:’ and only displays the value of the purchase_order custom field when such a field exists and has a value.
However, when I use the second example code, nothing is displayed, whether a purchase_order custom field is present and populated or not.
Any idea what I’m doing wrong?
- This reply was modified 8 months, 1 week ago by ChrisL.
Forum: Plugins
In reply to: [Dashboard To-Do List] SuggestionJust a thought: if you wanted to keep it simple, you could prompt users to type DONE at the end of a completed list item. Then, on the frontend, if the word DONE (case insensitive) is found at the end of a list item, hide the word and display the list item with a line through it, like this:
Editor:
Populate website pages DONEFrontend:
Populate website pagesForum: Plugins
In reply to: [Dashboard To-Do List] SuggestionGreat. I assume this is already on the cards, but enabling users to check off items as they’re done would be a huge bonus. At present there’s just the option to type DONE or something similar in the list editor.
Forum: Plugins
In reply to: [Dashboard To-Do List] SuggestionOne possible bug: if I do the following..
- Tick the box to “Allow Editors to view and edit this To-Do list”
- Switch to an Editor account (using the ‘User Switching’ plugin), edit the list and save it.
- Switch back to the Admin account
Then the “Allow Editors to view and edit this To-Do list” checkbox is not selected.
Essentially, it appears that an Editor editing the list causes them to stop having access to the list. If an Editor refreshes the admin dashboard after saving the list, then the list disappears.
There is a small chance that this is an anomaly caused by my using the ‘User Switching’ plugin to switch users, rather than actually logging in.
Forum: Plugins
In reply to: [Dashboard To-Do List] SuggestionThat’s great. I’ll give it a go with the next client. Thanks for implementing the suggestion!!
Forum: Plugins
In reply to: [Postie] tmptitle draft postsThe original code seems to trigger on the first tmptitle post, however, if you increase the trigger value to 3, that seems to fix the issue, like this:
function check_draft_post_title( $new_status, $old_status, $post ) { if ( $new_status === 'draft' && strtolower( $post->post_title ) === 'tmptitle' ) { $post_id = $post->ID; // Check if transient already exists $email_sent = get_transient( 'draft_post_email_sent_' . $post_id ); if ( false === $email_sent ) { $args = array( 'post_type' => 'post', 'post_status' => 'draft', 'post_title' => 'tmptitle', ); $query = new WP_Query( $args ); // Check if there are three or more draft posts with the title tmptitle if ( $query->found_posts >= 3 ) { error_log( 'Three or more draft posts with the title "tmptitle" have been created by Postie Plugin.' ); $to = get_option( 'admin_email' ); // Use admin email address $subject = get_bloginfo( 'name' ) . ' - Multiple Draft tmptitle Posts Created'; $message = '<p>Three or more draft posts with the title "tmptitle" have been created by Postie Plugin.</p>'; $message .= '<p>View all posts in the admin area: ' . get_admin_url() . 'edit.php?post_type=post</p>'; $message .= '<p>Here are some suggested remedies: https://postieplugin.com/ufaq/my-posts-have-a-tmptitle-title-and-no-content/</p>'; $headers = array( 'Content-Type: text/html; charset=UTF-8' ); wp_mail( $to, $subject, $message, $headers ); // Set transient to prevent duplicate email set_transient( 'draft_post_email_sent_' . $post_id, true, DAY_IN_SECONDS ); } wp_reset_postdata(); } } } add_action( 'transition_post_status', 'check_draft_post_title', 10, 3 );