publish_post hook isn’t working for scheduled posts

I had a bit of an issue with wp-to-twitter publishing a tweet linking to a post that was set as ‘pending’ that i had emailed to my wordpress.org site. The email included a footer, which included my mobile number. I decided to create my own plugin. add_action(‘publish_post’, ‘tcr_tweet’); /* the function */ function tcr_tweet($postID) { … Read more

Trying to inject twitter metadata into using wp_head action in functions.php – get_the_excerpt() returns null

So I followed the “Add Twitter Cards without plugins” this tutorial for how to add twitter metatags into the header using the wp_head method. I have pretty much taken the code as is, and put it in my functions.php. This works great for all the metatags except get_the_excerpt() which seems to just return nothing and … Read more

Should I ask my Twitter plugin users to create their own Twitter App and API Keys to use my plugin?

I am creating my first WordPress plugin. It is a Twitter plugin that uses Twitter API 1.1 and OAuth 2.0 to generate a bearer token and then use that to fetch Tweets from Twitter. The plugin is almost ready to be launched. Right now, the user of the plugin will need to go here: https://developer.twitter.com/en/apps/create … Read more