Scheduled Posts - Plugin Missed Schedule - WP to Twitter - wordpress

The feature to schedule posts in Wordpress 3.4.2 seems to be broken.
So I installed the plugin WP Missed Schedule that checks every 5 minutes for posts that match this problem.
I also use the Plugin WP to Twitter that supports the feature to tweet a new post automatically to Twitter - no matter whether the post is planned or not.
Here is the problem:
If there is a scheduled Post it will be published in Wordpress, supported by the Plugin WP Missed Schedule, but not tweeted!
The Code in WP Missed Schedule says:
wp_publish_post($scheduledID)
And the called Hook in WP to Twitter says:
add_action( 'publish_post', ...)
So is the Hook publish_post the right one for the function wp_publish_post?
I did not find any documentation about that.
Hope you can help me :)

I had the same problem on a website using Tweetable. I added this line right after
wp_publish_post($scheduledID)
tweetable_publish_tweet($scheduledID);
But that wasn't the problem. There were a few lines in Tweetable that caused the posting function to exit if the modified date was after the publish date. When the plugin publishes the post it changes the modified date. I commented out the lines in Tweetable and it worked.

Related

Wordpress save_post hook will be unnecessarily fired

Having a WP multisite as a backend for my blog encountered a really weird issue. The multisite splits the blog into english and german. They have exactly the same setup, plugins, wp-theme etc.
The frontend is a gatsby site (static site generated with react) so have made an action on the save_post WP Hook to deploy the site. It worked well until recently it fires really frequently and unreliably but only of the english blog. The german blog as I said has everything the same yet it works as it supposed to work.
The hook makes a request with php curl to the deployHQ endpoint which triggers the deployment. The problem is that the save_post hook fires sometimes more than 3 times a minute then stops for maybe one minute then stops for a few minutes then again. Seemingly it does that without any sequence and feels like completely random. The time between 2 such request is never more than 10 minutes.
Do you have any idea what it may causes this or any way of debug?
Thank you for your support in advance!
Sorry guys it was due to a plugin. Whenever a request was made it fired somehow the post_save hook too. So if you're working with this hook I would recommend not to use this plugin: https://wordpress.org/plugins/wp-rest-api-log/

Plugin/Custom Code to email me when a plugin update is available

I've tried 2 or three plugins but none seem to be functional. Is there a custom code piece out there or somewhere I can implement a PHP script that will send me an email when a new plugin update is available? Currently have tried WP Update Notifier and Mail-on-Update with zero success.
You can use Wordfence.
Set Email summary frequency to daily.
Use Scan for out of date plugins, themes and WordPress versions to find plugin updates.

get execution time and memory usage of each plugin programatically

I want to get each WordPress plugin execution time and memory usage by it. I have gone through WordPress documentation and google search but I am getting code regarding complete page but not specific plugin.
Following codes, I have found
$wpdb->queries
echo get_num_queries();
timer_stop(1);
Can anyone guide me how I can get execution time and memory usage for specific plugin only?
Already exists plugin Debug Bar and another plugin (addon for that) you will need: Debug Bar-Slow Actions.
then you will get such results:
Another plugin I can recommend is P3 (Plugin Performance Profiler):
https://wordpress.org/plugins/p3-profiler/

Program his own plugin - show if there is a update of this plugin

I had program my own plugin.
Now I want to include a function which display a notice in the menu 'plugins' if I update my own plugin.
So user get a notice if an update is available.
Are there existing functions of wordpress which can I use?
Thanks for helping me.

WordPress: How to show who delete post in wp

I need to show who is editor has delete any post in my WordPress web site, I show some post in draft.
How can show that.. Are plugin do that ?
I cannot see it in revision
Take a look at the Simple History plugin:
https://wordpress.org/plugins/simple-history/
I believe it does what you're asking for. I've used this a few months back and was pretty happy with the extra info it provides.
there is no way to know that in a normal installation.
You can download and install some plugin to do that, go to section plugins on wordpress site, this is an example:
https://wordpress.org/plugins/aryo-activity-log/

Resources