{"id":20109210,"url":"https://github.com/neurotechx/edu_plugin","last_synced_at":"2026-05-13T09:07:30.971Z","repository":{"id":80817221,"uuid":"76870992","full_name":"NeuroTechX/EDU_Plugin","owner":"NeuroTechX","description":"This is the wordpress Plugin which will be used to integrate information ","archived":false,"fork":false,"pushed_at":"2017-03-10T18:59:47.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-13T05:29:31.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NeuroTechX.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-12-19T14:56:34.000Z","updated_at":"2016-12-21T21:25:24.000Z","dependencies_parsed_at":"2023-07-11T06:00:46.016Z","dependency_job_id":null,"html_url":"https://github.com/NeuroTechX/EDU_Plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuroTechX%2FEDU_Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuroTechX%2FEDU_Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuroTechX%2FEDU_Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuroTechX%2FEDU_Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NeuroTechX","download_url":"https://codeload.github.com/NeuroTechX/EDU_Plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549660,"owners_count":19980562,"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-11-13T18:07:29.227Z","updated_at":"2025-11-27T09:05:16.340Z","avatar_url":"https://github.com/NeuroTechX.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== EDU Plugin ===\n\nContributors: Kenny Lee Sin Cheong\nRequires at least: 1.0\nStable tag: 1.0\nTested up to: 1.0\n\nNeuroTechEdu plugin to interact with Github.\n\n\n== Description ==\n\nPlugins used by the NeuroTechEDU website.\n\n\n== Extending the EDUPlugin with new plugins ==\n\nThe EDUPlugin is just a loader used to load the plugins in the includes/ directory, including the admin settings page.\nBy convention, the plugins in includes are named \u003cplugin_name\u003ePlugin.php (such files are \"php included\" automatically).\n\nTo write additional plugins, the callbacks are wrapped in a class to allow different configurations through the class's member attributes.\nThe class contains two methods:\n    - The constructor\n    - The callback\n    \nThe class constructor is used to set the states of the plugin.\nThe callback is the function that gets called when the wordpress hook gets triggered.\nSee includes/GithubReadmePlugin.php as an example.\n\nThe plugin is then loaded in EDU_Plugin.php .\nTo load a plugin, instantiate an instance of that plugin in the run_EDUPlugin function of the EDU_Plugin.php file,\nalong with the necessary parameters that the class constructor requires.\nDepending on the plugin's use case, call add_action or add_filter member method of the EDUPlugin instance,\npassing the hook, and an array containing an instance of the plugin and the name of the callback.\ne.g. $ghplugin = new GithubReadmePlugin( $gh, $owner, $repo, $page_ids, \"html\" );\n     $EDUPlugin-\u003eadd_filter( 'the_content',\n                             array( $ghplugin, 'callback_github_readme' ) );\n\nTo add additional options to the plugin's admin page, add the settings' section and field in the\nEDUPlugin_page_init callback of the EDUPluginAdmin class in EDUPluginAdmin.php.\nSee\n    - https://codex.wordpress.org/Function_Reference/add_settings_section\n    - https://codex.wordpress.org/Function_Reference/add_settings_field\n                             \n\n== GithubReadmePlugin ==\n\nThe GithubReadmePlugin set the content of a post (post or page) to the content of a Github Repo's readme.\nThe parameters that must be set from the settings page are:\n     - User accessing Github's API\n     - User token\n     - Repo owner\n     - Repo name\n     - A list of comma separated page ids on which to apply the plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurotechx%2Fedu_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneurotechx%2Fedu_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurotechx%2Fedu_plugin/lists"}