Skip to content

Commit

Permalink
Use register_activation_hook to only run the set up once.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed May 21, 2024
1 parent 14a048a commit 6bfd1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _blueprint/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Plugin Name: Setup MVC To-do demo
*/

add_action(
'init',
register_activation_hook(
__FILE__,
function () {

// Create a new page.
Expand Down

0 comments on commit 6bfd1bf

Please sign in to comment.