{"id":67347,"date":"2017-04-26T13:04:53","date_gmt":"2017-04-26T13:04:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/cmc-hook\/"},"modified":"2017-07-24T14:39:31","modified_gmt":"2017-07-24T14:39:31","slug":"cmc-hook","status":"publish","type":"plugin","link":"https:\/\/scn.wordpress.org\/plugins\/cmc-hook\/","author":14142304,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.6","stable_tag":"1.0.6","tested":"4.8.28","requires":"4.6.0","requires_php":"","requires_plugins":"","header_name":"cmc-hook","header_author":"Evans Edem Ladzagla","header_description":"Register php functions to hooks(action and filter) from dashboard tools, run php codes safely, create and quickly test plugins from  admin backend","assets_banners_color":"fffdff","last_updated":"2017-07-24 14:39:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/lovnic\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1612,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.JPG":{"filename":"banner-772x250.JPG","revision":"1648063","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6"],"block_files":[],"assets_screenshots":{"screenshot-1.JPG":{"filename":"screenshot-1.JPG","revision":"1645890","resolution":"1","location":"assets"},"screenshot-2.JPG":{"filename":"screenshot-2.JPG","revision":"1645890","resolution":"2","location":"assets"},"screenshot-3.JPG":{"filename":"screenshot-3.JPG","revision":"1645890","resolution":"3","location":"assets"},"screenshot-4.JPG":{"filename":"screenshot-4.JPG","revision":"1645890","resolution":"4","location":"assets"},"screenshot-5.JPG":{"filename":"screenshot-5.JPG","revision":"1645890","resolution":"5","location":"assets"},"screenshot-6.JPG":{"filename":"screenshot-6.JPG","revision":"1645890","resolution":"6","location":"assets"},"screenshot-7.JPG":{"filename":"screenshot-7.JPG","revision":"1645890","resolution":"7","location":"assets"}},"screenshots":{"1":"Hooks","2":"Hook - Filter","3":"Hook - Action","4":"Hook - File","5":"Projects","6":"Project Hooks","7":"Settings"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[356,140167,229,662,4797],"plugin_category":[59],"plugin_contributors":[140168],"plugin_business_model":[],"class_list":["post-67347","plugin","type-plugin","status-publish","hentry","plugin_tags-css","plugin_tags-custom-filters","plugin_tags-javascript","plugin_tags-php","plugin_tags-shortcode-generator","plugin_category-utilities-and-tools","plugin_contributors-lovnic","plugin_committers-lovnic"],"banners":{"banner":"https:\/\/ps.w.org\/cmc-hook\/assets\/banner-772x250.JPG?rev=1648063","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cmc-hook_fffdff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/cmc-hook\/assets\/screenshot-1.JPG?rev=1645890","caption":"Hooks"},{"src":"https:\/\/ps.w.org\/cmc-hook\/assets\/screenshot-2.JPG?rev=1645890","caption":"Hook - Filter"},{"src":"https:\/\/ps.w.org\/cmc-hook\/assets\/screenshot-3.JPG?rev=1645890","caption":"Hook - Action"},{"src":"https:\/\/ps.w.org\/cmc-hook\/assets\/screenshot-4.JPG?rev=1645890","caption":"Hook - File"},{"src":"https:\/\/ps.w.org\/cmc-hook\/assets\/screenshot-5.JPG?rev=1645890","caption":"Projects"},{"src":"https:\/\/ps.w.org\/cmc-hook\/assets\/screenshot-6.JPG?rev=1645890","caption":"Project Hooks"},{"src":"https:\/\/ps.w.org\/cmc-hook\/assets\/screenshot-7.JPG?rev=1645890","caption":"Settings"}],"raw_content":"<!--section=description-->\n<p>a. Targeted at developers for quick test and development of plugins\na. Register php functions to hooks ( action and filter ) live from wordpress dashboard tools.\nb. Run php, html, css and javascript codes safely. php codes are enclosed between php tags eg. \"\"\nc. Hooks can be disabled from the url, so your system can recover from erroneous php codes\nd. create and quickly live test plugins from your website before deployment\ne. Easy to use with shortcodes\nf. Very extendable with other plugins as it has lots of filters and actions.<\/p>\n\n<h3>shortcode<\/h3>\n\n<p>[cmchksh id=\"\" slug=\"\"]<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Minimum Requirements<\/dt>\n<dd><p>wordpress 4.6.0\nphp 5.5<\/p><\/dd>\n<dt>How to install<\/dt>\n<dd><p>Upload the plugin to the wp-content\\plugins folder of your wordpress installaiton and activate it<\/p><\/dd>\n<dt>How to use<\/dt>\n<dd><p>The plugin create a sub menu to tools admin menu called \"cmc hook\"\nFrom the cmc hook menu you can create hooks which can be either a filter, action or file\nThe code editor of filter and action should not contain any class or function definition as they are run in annonymous functions\nFile hooks can have class and function definition.<\/p><\/dd>\n<dt>In case there are php errors which hangs my site<\/dt>\n<dd><p>You can deactivate hooks from url and even prevent all hooks from loading.<\/p><\/dd>\n<dt>How To Deactivate hook<\/dt>\n<dd><p>To deactivate hook, pass \"cmchk_neg=cmchkrtk&amp;cmchk_id=2,3\" to the url. The cmchk_id is the id of the list of hooks you want to deactivate\nAdd \"cmchk_run_on=none\" to the url parameters to prevents all hooks from loading and running.\n\"cmchk_neg=token\" must be present in the url parameters when deactivating any hook or project. The value of which is a security token which defaults to \"cmchkrtk\" and can be changed at the settings of \"cmc hook\" menu<\/p><\/dd>\n<dt>What are Hook Projects<\/dt>\n<dd><p>From the cmc hook menu projects can be created which houses a list of hooks and can be exported as a wordpress plugin\nProjects have one main \"run file\" that runs when the project is loaded. This file calls all other project hooks. To include other project file hook use \"cmchk_include( 'slug' )\" function. The id is the slug of the hook file to load\nProjects action and filters are loaded automatically when the project loads  and must not be included in the run file.<\/p><\/dd>\n<dt>Can I Deactivate Projects<\/dt>\n<dd><p>Projects can be deactivated remotely by adding to the url parameters \"cmchk_pid=4,5\" where cmchk is the id of the projects to deactivate<\/p><\/dd>\n<dt>What is safe mode<\/dt>\n<dd><p>Hooks can also be run in safe mode. This allows hooks to only run when \"cmchk_safe=id\" is appended to the url parameters. The id is the id  of hook<\/p><\/dd>\n<dt>Can I choose not to use codemirror<\/dt>\n<dd><p>Codemirror is provided as the coded editor but can be disabled at the settings to use plain textarea<\/p><\/dd>\n<dt>Should i use php tags<\/dt>\n<dd><p>Php codes must be code tags eg. \"\". The same apply to javascript and css.<\/p><\/dd>\n<dt>Can I use html javascript and css in the code editor<\/dt>\n<dd><p>A misture of html, php, javascript and css can be used in the code editor<\/p><\/dd>\n<dt>Filters<\/dt>\n<dd><p>cmchk_load_hook\ncmchk_load_project\ncmchk_editor_data_save\ncmchk_project_editor_data_save\ncmchk_settings_data_save\ncmchk_export_projects\ncmchk_import_project\ncmchk_export_plugin_info\ncmchk_update_slug\ncmchk_get_slug\ncmchk_admin_page_menu\ncmchk_admin_page_section\ncmchk_create_plugin_hooks\ncmchk_create_plugin_file_hooks\ncmchk_include_hook<\/p><\/dd>\n<dt>Actions<\/dt>\n<dd><p>cmchk_hook_loaded\ncmchk_editor_save\ncmchk_project_editor_save\ncmchk_settings_save\ncmchk_admin_page_settings_controls\ncmchk_admin_page_hook_editor_wp_funcs\ncmchk_admin_page_editor_controls_top\ncmchk_admin_page_editor_controls\ncmchk_admin_page_project_editor_controls\ncmchk_admin_page_project_editor_controls2<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Register php functions to hooks(action and filter), run php codes safely, create and test plugins all from dashboard tools","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/67347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=67347"}],"author":[{"embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lovnic"}],"wp:attachment":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=67347"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=67347"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=67347"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=67347"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=67347"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=67347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}