{"id":13759484,"url":"https://github.com/mainwp/mainwp-hello-world-extension","last_synced_at":"2025-03-20T02:45:35.445Z","repository":{"id":34391518,"uuid":"38318703","full_name":"mainwp/mainwp-hello-world-extension","owner":"mainwp","description":"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.","archived":false,"fork":false,"pushed_at":"2024-04-25T10:49:04.000Z","size":11,"stargazers_count":18,"open_issues_count":3,"forks_count":8,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-16T16:37:08.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mainwp.com/creating-a-wordpress-plugin/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mainwp.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-30T15:55:09.000Z","updated_at":"2024-04-25T10:49:08.000Z","dependencies_parsed_at":"2024-08-03T13:13:24.966Z","dependency_job_id":null,"html_url":"https://github.com/mainwp/mainwp-hello-world-extension","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainwp%2Fmainwp-hello-world-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainwp%2Fmainwp-hello-world-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainwp%2Fmainwp-hello-world-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainwp%2Fmainwp-hello-world-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainwp","download_url":"https://codeload.github.com/mainwp/mainwp-hello-world-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244541806,"owners_count":20469240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T13:00:53.854Z","updated_at":"2025-03-20T02:45:35.412Z","avatar_url":"https://github.com/mainwp.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"=== Example Extension ===\r\n\r\n* Fetch data from mainwp \r\nFilter \"mainwp_getsites\": Fetch child-sites data. \r\n   \r\n\r\n* Call function on child-plugin\r\nFilter \"mainwp_fetchurlauthed\": call function get_all_posts on child-plugin\r\n\r\nOther available functions on child-plugin:\r\n    $callableFunctions = array(\r\n        'stats' =\u003e 'getSiteStats',\r\n        'upgrade' =\u003e 'upgradeWP',\r\n        'newpost' =\u003e 'newPost',\r\n        'deactivate' =\u003e 'deactivate',\r\n        'newuser' =\u003e 'newUser',\r\n        'newadminpassword' =\u003e 'newAdminPassword',\r\n        'installplugintheme' =\u003e 'installPluginTheme',\r\n        'upgradeplugintheme' =\u003e 'upgradePluginTheme',\r\n        'backup' =\u003e 'backup',\r\n        'backup_checkpid' =\u003e 'backup_checkpid',\r\n        'cloneinfo' =\u003e 'cloneinfo',\r\n        'security' =\u003e 'getSecurityStats',\r\n        'securityFix' =\u003e 'doSecurityFix',\r\n        'securityUnFix' =\u003e 'doSecurityUnFix',\r\n        'post_action' =\u003e 'post_action',\r\n        'get_all_posts' =\u003e 'get_all_posts',\r\n        'comment_action' =\u003e 'comment_action',\r\n        'comment_bulk_action' =\u003e 'comment_bulk_action',\r\n        'get_all_comments' =\u003e 'get_all_comments',\r\n        'get_all_themes' =\u003e 'get_all_themes',\r\n        'theme_action' =\u003e 'theme_action',\r\n        'get_all_plugins' =\u003e 'get_all_plugins',\r\n        'plugin_action' =\u003e 'plugin_action',\r\n        'get_all_pages' =\u003e 'get_all_pages',\r\n        'get_all_users' =\u003e 'get_all_users',\r\n        'user_action' =\u003e 'user_action',\r\n        'search_users' =\u003e 'search_users',\r\n        'get_terms' =\u003e 'get_terms',\r\n        'set_terms' =\u003e 'set_terms',\r\n        'insert_comment' =\u003e 'insert_comment',\r\n        'get_post_meta' =\u003e 'get_post_meta',\r\n        'get_total_ezine_post' =\u003e 'get_total_ezine_post',\r\n        'get_next_time_to_post' =\u003e 'get_next_time_to_post',\r\n        'cancel_scheduled_post' =\u003e 'cancel_scheduled_post',\r\n        'serverInformation' =\u003e 'serverInformation',\r\n        'maintenance_site' =\u003e 'maintenance_site',\r\n        'keyword_links_action' =\u003e 'keyword_links_action',\r\n        'branding_child_plugin' =\u003e 'branding_child_plugin',\r\n        'code_snippet' =\u003e 'code_snippet',\r\n        'uploader_action' =\u003e 'uploader_action',\r\n        'wordpress_seo' =\u003e 'wordpress_seo',\r\n        'client_report' =\u003e 'client_report',\r\n        'createBackupPoll' =\u003e 'backupPoll',\r\n        'page_speed' =\u003e 'page_speed',\r\n        'woo_com_status' =\u003e 'woo_com_status',\r\n        'heatmaps' =\u003e 'heatmaps',\r\n        'links_checker' =\u003e 'links_checker',\r\n        'wordfence' =\u003e 'wordfence',\r\n        'delete_backup' =\u003e 'delete_backup',\r\n        'update_values' =\u003e 'update_values',\r\n        'ithemes' =\u003e 'ithemes',        \r\n        'updraftplus' =\u003e 'updraftplus',\r\n        'backup_wp' =\u003e 'backup_wp'\r\n    );\r\n\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainwp%2Fmainwp-hello-world-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainwp%2Fmainwp-hello-world-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainwp%2Fmainwp-hello-world-extension/lists"}