Add action save post when create and publish

I think one key question here is how _select_match_from_id meta value is saved? Is it some metafield on the post edit screen or from some other logic? If I may assume that it is from a metafield, then you could just read its value from the $_POST array. You could also improve your code by … Read more

upgrader_process_complete filter not fired using ajax updates

There’s two thing that relates to this concern. The upgrader_process_complete action doesn’t fire when the updater is running in bulk mode, aka multiple plugin updates. ref: https://core.trac.wordpress.org/browser/tags/6.0/src/wp-admin/includes/class-wp-upgrader.php#L826 // @see https://core.trac.wordpress.org/browser/tags/6.0/src/wp-admin/includes/class-wp-upgrader.php#L826 // @line 826 – 841. if ( ! $options[‘is_multi’] ) { do_action( ‘upgrader_process_complete’, $this, $options[‘hook_extra’] ); } The wp_ajax_update_plugin function, which is responsible for handing … Read more

add_action hook for links.php page

OK, I made an awful, but working solution: the hook is admin_menu, than, in the called function, I added if( strstr($_SERVER[‘PHP_SELF’],’link.php’) in the begining. If there’s a better solution, please someone send it.

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