Skip to content

Commit

Permalink
Let's not rename this.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Jun 12, 2024
1 parent ffed31a commit 734a729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/php-cron-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you wish to prevent PHP cron events from being added or edited on your site t

## How do I create a new PHP cron event?

In the Tools → Cron Events admin panel, click on "Add New". In the form that appears, select the "Execute PHP" option under the "Event Type" list and enter the schedule and next run time. In the "Hook code" area, enter the PHP code that should be run when your cron event is executed. Don't include the PHP opening tag (`<?php`).
In the Tools → Cron Events admin panel, click on "Add New". In the form that appears, select the "PHP cron event" option under the "Event Type" list and enter the schedule and next run time. In the "Hook code" area, enter the PHP code that should be run when your cron event is executed. Don't include the PHP opening tag (`<?php`).

## Can I "lock" PHP cron events so that other users cannot edit them?

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/AddEventCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function AddingANewPHPEvent( AcceptanceTester $I ) {
$I->dontSee( 'PHP Code' );
$I->dontSee( 'URL' );
$I->dontSee( 'HTTP Method' );
$I->selectOption( 'input[name="crontrol_action"]', 'Execute PHP' );
$I->selectOption( 'input[name="crontrol_action"]', 'PHP cron event' );
$I->see( 'PHP Code' );
$I->dontSee( 'URL' );
$I->dontSee( 'HTTP Method' );
Expand Down

0 comments on commit 734a729

Please sign in to comment.