Skip to content

Commit

Permalink
Merge pull request #130 from wiegertschouten/master
Browse files Browse the repository at this point in the history
Clear the WP object cache after reordering
  • Loading branch information
cristianraiber authored Nov 9, 2023
2 parents 7a908bf + 134f7d9 commit 71d694a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions simple-custom-post-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ public function update_menu_order() {
}
}

wp_cache_flush();

do_action( 'scp_update_menu_order' );
}

Expand Down Expand Up @@ -404,6 +406,8 @@ public function update_menu_order_tags() {
}
}

wp_cache_flush();

do_action( 'scp_update_menu_order_tags' );

}
Expand Down

0 comments on commit 71d694a

Please sign in to comment.