WordPress publish_post hook not getting featured image and meta on first publish, but works on updating title

I don’t know if it’s the Gutenberg editor or if it’s the hook publish_post The hook itself works, and if you used the old WordPress post editor, then the issue in question would not happen. So you can say that it’s the Gutenberg/block editor. why it’s not returning the meta and featured image Because Gutenberg … Read more

Bypass product key [closed]

Product keys are usually only used for updates. Have you tried using the plugin on another site to check if it works without the key? If it doesn’t work then it would probably be down to the licencing and you may need to buy a product key for the new site. If that’s the case … Read more

How to silent ‘Attempting a database schema change is discouraged.’?

You can stop the Schema Change along with Direct Query and No Caching warnings in these two ways- global $wpdb; $wpdb->query( “DROP TABLE IF EXISTS {$wpdb->prefix}rest_of_the_name” ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.SchemaChange or global $wpdb; // @codingStandardsIgnoreStart $wpdb->query( “DROP TABLE IF EXISTS {$wpdb->prefix}rest_of_the_name” ); // @codingStandardsIgnoreEnd

shortcode executed in the page editor

From the add_shortcode() docs: Note that the function called by the shortcode should never produce an output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results. Your code should be: function vbshort_shortcode() { return ‘Hello shotcode!’; } … Read more