Send Notification after post published was working but stopped after the last WP update

Regarding Update 1. Perhaps you could compare the publish and modified dates and run your code only when they match, i.e. when the post is first published. Something along these lines, function to_followers_only_notify( $ID, $post ) { $posted = strtotime( $post->post_date ); $modified = strtotime( $post->post_modified ); if ( $posted !== $modified ) { return; … Read more

How publish post from pending status

When WordPress gives you errors such as that the post needs an author and permalink, it is best to figure out a way to provide these. Otherwise you are asking for trouble further down the line. You might find a way to force it, but it would be an uphill battle. WordPress is like a … Read more

Modify Publish Metabox location on CPT

This solution seems to work so far. add_filter(‘screen_layout_columns’, ‘one_column_on_screen_options’); function one_column_on_screen_options($columns) { $columns[‘post’] = 1; return $columns; } // Ignore user preferences stored in DB, and serve only one column layout add_filter(‘get_user_option_screen_layout_post’, ‘one_column_layout’); function one_column_layout($option) { return 1; } add_action( ‘add_meta_boxes_sliding_panel’, ‘sds_do_meta_boxes’, 0, 1 ); function sds_do_meta_boxes( $post ) { remove_meta_box( ‘submitdiv’, ‘sliding_panel’, ‘side’ ); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)