Skip to content

Commit

Permalink
Merge pull request #1134 from Automattic/fix/term-install
Browse files Browse the repository at this point in the history
Properly and temporarily register job types on activation
  • Loading branch information
jom authored Aug 1, 2017
2 parents ea30646 + 4ebc4fa commit 506fb09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-job-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ public function __construct() {
*/
public function activate() {
WP_Job_Manager_Ajax::add_endpoint();
unregister_post_type( 'job_listing' );
add_filter( 'pre_option_job_manager_enable_types', '__return_true' );
$this->post_types->register_post_types();
remove_filter( 'pre_option_job_manager_enable_types', '__return_true' );
WP_Job_Manager_Install::install();
flush_rewrite_rules();
}
Expand Down

0 comments on commit 506fb09

Please sign in to comment.