Skip to content

Commit

Permalink
Update schedule_cron.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KripsMansi authored Mar 18, 2024
1 parent 0551bb5 commit f619bb4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions schedule_cron.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
### Schedule Cron Event

- The code includes functions to schedule and run the cron job responsible for executing tasks at specified intervals.
The schedule_feed_cron_job() function schedules the cron job based on the selected recurrence option and feed status.
The run_feed_cron_job() function defines the tasks to be performed when the cron job is triggered, such as displaying an admin notice.
```php
- The schedule_feed_cron_job() function schedules the cron job based on the selected recurrence option and feed status.
- The run_feed_cron_job() function defines the tasks to be performed when the cron job is triggered, such as displaying an admin notice.

```php
function my_custom_menu_page() {
add_menu_page(
'Feed Settings', // Page title
Expand All @@ -15,9 +15,7 @@ function my_custom_menu_page() {
);
}
add_action('admin_menu', 'my_custom_menu_page');
```
```php
function feed_settings_page(){
function feed_settings_page(){ ?>

<div class="wrap">
<div class="feed-settings-box">
Expand All @@ -44,7 +42,7 @@ function feed_settings_page(){

<div id="status-message"></div>
</div>
</div>
</div> <?php
}
//style
<style>
Expand Down

0 comments on commit f619bb4

Please sign in to comment.