Skip to content

Commit

Permalink
Call 'maybe_add_default_meta_data' method on 'wp_after_insert_post'
Browse files Browse the repository at this point in the history
  • Loading branch information
fjorgemota committed Jul 22, 2024
1 parent 000a669 commit fc3b10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wp-job-manager-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function __construct() {
add_filter( 'wp_insert_post_data', [ $this, 'fix_post_name' ], 10, 2 );
add_action( 'add_post_meta', [ $this, 'maybe_add_geolocation_data' ], 10, 3 );
add_action( 'update_post_meta', [ $this, 'update_post_meta' ], 10, 4 );
add_action( 'wp_insert_post', [ $this, 'maybe_add_default_meta_data' ], 10, 2 );
add_action( 'wp_after_insert_post', [ $this, 'maybe_add_default_meta_data' ], 10, 2 );
add_filter( 'post_types_to_delete_with_user', [ $this, 'delete_user_add_job_listings_post_type' ] );

add_action( 'transition_post_status', [ $this, 'track_job_submission' ], 10, 3 );
Expand Down

0 comments on commit fc3b10c

Please sign in to comment.