Flowcharts
Estimated reading: 3 minutes
3466 views
Flowcharts
Plugin Flowchart
| WordPress Event | myCred Actions | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wp-config.php loaded | Any myCred Constant overrides needs to be done here. | ||||||||||||||||||||||||
| mycred.php loaded |
|
||||||||||||||||||||||||
plugins_loaded |
|
||||||||||||||||||||||||
after_setup_theme |
|
||||||||||||||||||||||||
init |
|
||||||||||||||||||||||||
widgets_init |
|
||||||||||||||||||||||||
admin_init |
|
||||||||||||||||||||||||
You can find a visual flowchart here. (Credit Joseph Mueller)
Balance Adjustment Flowchart
The following process takes place each time a users balance is adjusted using the add_creds class method. This also includes using the myCred_add or myCred_subtract functions.
| Event | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| add_creds() | - | ||||||||
| Minimum Requirements |
|
||||||||
| Format Amount |
|
||||||||
| Enforce Maximum Amount |
|
||||||||
| Validate Point Type |
|
||||||||
| Confirm | The mycred_add filter allows you to stop the transaction before it is processed. The filter should return either bool true (run process) or false (stop the process). | ||||||||
| Process |
|
||||||||
| Finish | Success or decline, the result passes through the mycred_add_finished filter before existing for tasks that needs to be done after the process is completed. |