Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Curious. I added the plugin WP Crontrol, to check cronjobs. I can see there is a hook that is set:

    Hook: wp-mail-catcher_0
    Parameters: None
    Next execution: 2022-04-16 15:09:04 (in 23 hours 56 minutes)
    Callback: WpMailCatcher\ExpiredLogManager::removeExpiredLogs()
    Interval: everyday

    This cronjob is run, so this is fine.

    But, it seems it doesn’t EVER load any Log to delete, probably because there are no parameters at all in the call to the method get:
    $logsGet = Logs::get();

    This is the only case in all the calls to that method where the argument is empty.

    So, the strange hybrid of WP_Query’s args and WPDB’s query, always returns an empty set of logs, thus, nothing will ever be deleted.

    I would suggest that the removeExpiredLogs() should contain a simple WPDB query on the table that deletes all the logs where time is less than “now minus the interval set in the settings”.

    Just create a “notification newsletter”; in the template editor, select the area where the sample posts (or the message “no new posts”) is shown and then from the sidebar that aappears choose your custom post type.

    Do not expect it to work on multilanguage posts, thought..Since the default user used to send newsletters is a sort of a not-logged-in user, mails will only be sent in the default language.

    NOTE (for Mailpoet Devs):
    A workaround would be to create one user for each language (maybe with a specific role to avoid viewing private posts and so on) and then use that user to send emails: the language should be taken by whatever third-party multilanguage plugin and hopefully select the correct posts to send.

    Thread Starter erenor

    (@erenor)

    Hello @rubengc

    Thank you for the prompt and kind answer.

    For now, I managed to change the first translated string to Richiesto/i %1$d %2$s, so that it is a correct italian sentence (the same would be used in french and other languages). Anyway, having a single string would allow us to avoid the “implicit plural” (the “o/i” part), so I’ll look forward to whatever you come up with ??

    Have a nice day,
    Erenor.

    Thread Starter erenor

    (@erenor)

    Hello, thank you for your fast response.

    I didn’t say anything about posts, I’m talking strictly about Dashboard and Loco Translate management. But I can see the problem arises when other plugins hiding the Dashboard (like WooCommerce) are installed.

    I’m pointing it out here so that maybe other people with the same issue can understand what’s “wrong”. On a fresh install users are able to access the “back-end” to edit their profile and so, if they are translators, they can also manage Loco Translate and translate plugins and themes.

    I’m marking this as “resolved”, since it wasn’t a Loco-related issue.

    Thank you!

    Thread Starter erenor

    (@erenor)

    Yes, you’re right.

    I thought the Categories would be enough for that (by setting role access to them), but instead there’s a field in a metabox controlling “access to the file”. So, the categories are only for the “folders” in the tree.

    Now that it’s clear, everything works fine.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)