Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainwp/mainwp-hello-world-extension
MainWP Hello World! Extension is an example extension. This extension provides two examples for calling MainWP Actions and Hooks. Purpose of this extension is to give you a start point in developing your first custom extension for the MainWP Plugin. This link provides step by step directions for creating your first Extension.
https://github.com/mainwp/mainwp-hello-world-extension
Last synced: 3 months ago
JSON representation
MainWP Hello World! Extension is an example extension. This extension provides two examples for calling MainWP Actions and Hooks. Purpose of this extension is to give you a start point in developing your first custom extension for the MainWP Plugin. This link provides step by step directions for creating your first Extension.
- Host: GitHub
- URL: https://github.com/mainwp/mainwp-hello-world-extension
- Owner: mainwp
- Created: 2015-06-30T15:55:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T10:49:04.000Z (6 months ago)
- Last Synced: 2024-07-31T01:46:22.069Z (3 months ago)
- Language: PHP
- Homepage: https://mainwp.com/creating-a-wordpress-plugin/
- Size: 10.7 KB
- Stars: 18
- Watchers: 11
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
=== Example Extension ===
* Fetch data from mainwp
Filter "mainwp_getsites": Fetch child-sites data.
* Call function on child-plugin
Filter "mainwp_fetchurlauthed": call function get_all_posts on child-pluginOther available functions on child-plugin:
$callableFunctions = array(
'stats' => 'getSiteStats',
'upgrade' => 'upgradeWP',
'newpost' => 'newPost',
'deactivate' => 'deactivate',
'newuser' => 'newUser',
'newadminpassword' => 'newAdminPassword',
'installplugintheme' => 'installPluginTheme',
'upgradeplugintheme' => 'upgradePluginTheme',
'backup' => 'backup',
'backup_checkpid' => 'backup_checkpid',
'cloneinfo' => 'cloneinfo',
'security' => 'getSecurityStats',
'securityFix' => 'doSecurityFix',
'securityUnFix' => 'doSecurityUnFix',
'post_action' => 'post_action',
'get_all_posts' => 'get_all_posts',
'comment_action' => 'comment_action',
'comment_bulk_action' => 'comment_bulk_action',
'get_all_comments' => 'get_all_comments',
'get_all_themes' => 'get_all_themes',
'theme_action' => 'theme_action',
'get_all_plugins' => 'get_all_plugins',
'plugin_action' => 'plugin_action',
'get_all_pages' => 'get_all_pages',
'get_all_users' => 'get_all_users',
'user_action' => 'user_action',
'search_users' => 'search_users',
'get_terms' => 'get_terms',
'set_terms' => 'set_terms',
'insert_comment' => 'insert_comment',
'get_post_meta' => 'get_post_meta',
'get_total_ezine_post' => 'get_total_ezine_post',
'get_next_time_to_post' => 'get_next_time_to_post',
'cancel_scheduled_post' => 'cancel_scheduled_post',
'serverInformation' => 'serverInformation',
'maintenance_site' => 'maintenance_site',
'keyword_links_action' => 'keyword_links_action',
'branding_child_plugin' => 'branding_child_plugin',
'code_snippet' => 'code_snippet',
'uploader_action' => 'uploader_action',
'wordpress_seo' => 'wordpress_seo',
'client_report' => 'client_report',
'createBackupPoll' => 'backupPoll',
'page_speed' => 'page_speed',
'woo_com_status' => 'woo_com_status',
'heatmaps' => 'heatmaps',
'links_checker' => 'links_checker',
'wordfence' => 'wordfence',
'delete_backup' => 'delete_backup',
'update_values' => 'update_values',
'ithemes' => 'ithemes',
'updraftplus' => 'updraftplus',
'backup_wp' => 'backup_wp'
);