Do New_to_publish hooks work for custom post types

I think you’re using wrong hooks. Please take a look at wp_transition_post_status function, you’ll see the correct hooks: function wp_transition_post_status($new_status, $old_status, $post) { do_action(‘transition_post_status’, $new_status, $old_status, $post); do_action(“{$old_status}_to_{$new_status}”, $post); do_action(“{$new_status}_{$post->post_type}”, $post->ID, $post); } So, in your code, you should use hooks: ‘new_to_publish’ ‘draft_to_publish’ ‘pending_to_publish’ and in your function, you have to check your post type.

How to upgrade WordPress automatically?

By default WordPress automatically updates itself, plugins, and themes. If your WordPress install doesn’t do that then you probably have something that disables this. You can check your theme for something like this add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’); And/Or in your wp-config.php define(‘AUTOMATIC_UPDATER_DISABLED’, true); define(‘WP_AUTO_UPDATE_CORE’, false); If your WordPress is not on a local machine and … Read more

Why does WP theme not look like promoted? [closed]

You need to use the same content and settings the author used to take the thumbnail, theme authors have no control over the content used in the theme preview on .org so the preview rarely shows what the theme is fully capable of. If the difference is more extreme and it’s not possible to install … Read more

comment-reply.js is not loading

Maybe this helps you out? Please make a backup from functions.php and add following function. /** * Add .js script if “Enable threaded comments” is activated in Admin * Codex: {@link https://developer.wordpress.org/reference/functions/wp_enqueue_script/} */ function wpse218049_enqueue_comments_reply() { if( is_singular() && comments_open() && ( get_option( ‘thread_comments’ ) == 1) ) { // Load comment-reply.js (into footer) wp_enqueue_script( … Read more

Wrong theme being activated

Fixing the base I’m pretty sure that you’ve actually checked the base yourself and I don’t have to ask … »Have you tried turning it off and on again?« Anyway, you need to run through the following chart again, just to be sure: If this doesn’t work, leave all plugins activated, try to switch back … Read more