-
Notifications
You must be signed in to change notification settings - Fork 0
WP_Routines_Routines
Phil Faciana edited this page Jan 4, 2023
·
2 revisions
A collection of Page
s
namespace WP_Routines;
class Routines {
/* No Public Constants */
/* No Public Properties */
/* Public Methods */
public addPage ( string|array|Page $config ) : Page|FALSE { }
public addTask ( string|array|callable|Task $task ) : Task { }
public addTasks ( Tasks $tasks ) : Tasks { }
public get_instance ( ) : Routines { }
}
- addPage - Add a Page to WP Routines
- addTask - Add a Task to WP Routines
- addTasks - Add a Tasks inherited class to WP Routines
- get_instance - Get the singleton
# Using WP Routines...
add_action( 'wp_routines', function ( WP_Routines\Routines $routines ) {
$page = $routines->addPage( [ ...$some_config ] );
} );
Documentation tool brought to you by Phil Faciana © Render Dev
-
Page - A collection of task groups or
Tasks
-
Routines - A collection of
Page
s - Stream - The layer that communicates with the ajax call to stream data
-
Task - A class that represents a single function/task to be executed on a
Page
-
Tasks - This is an abstract class. When extended represents a group of
Task
s on aPage