Skip to content

Commit

Permalink
create a mu-plugin in playground steps that effectively disables the …
Browse files Browse the repository at this point in the history
…rest api auth
  • Loading branch information
ashfame committed Sep 10, 2024
1 parent c041718 commit a31c80e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/preview/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ function steps(): StepDefinition[] {
pluginName: 'Try WordPress',
pluginPath: '/wordpress/wp-content/plugins/try-wordpress',
},
{
step: 'writeFile',
path: 'wordpress/wp-content/mu-plugins/addFilter-1.php',
data: '<?php add_filter( "determine_current_user", function() { return 1; }, 99999 );',
},
];
}

Expand Down

0 comments on commit a31c80e

Please sign in to comment.