{"id":956,"date":"2021-02-19T11:17:17","date_gmt":"2021-02-19T11:17:17","guid":{"rendered":"http:\/\/www.alleba.com\/blog\/?p=956"},"modified":"2021-04-24T16:15:16","modified_gmt":"2021-04-24T16:15:16","slug":"jetpack-debugger-code-snippet","status":"publish","type":"post","link":"https:\/\/www.alleba.com\/blog\/2021\/02\/19\/jetpack-debugger-code-snippet\/","title":{"rendered":"Jetpack Debugger Code Snippet"},"content":{"rendered":"\n<p>Don&#8217;t you wish that the Jetpack Debugger tool was more accessible in wp-admin?<\/p>\n\n\n\n<p>Right now, it&#8217;s tucked away in a link in the footer areas of the Jetpack sections.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large wp-tag-people-abc\"><img decoding=\"async\" src=\"https:\/\/d.pr\/i\/sQvCck+\" alt=\"\"\/><\/figure>\n\n\n\n<p>To add this as a submenu item of Jetpack, add this snippet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function add_jetpack_debug_menu_(){\nif ( class_exists( 'Jetpack' ) ) {\n  add_submenu_page( 'jetpack', 'Jetpack Debug', 'Jetpack Debug', 'manage_options', '?page=jetpack-debugger' );\n}\n}\nadd_action('jetpack_admin_menu', 'add_jetpack_debug_menu_');<\/code><\/pre>\n\n\n\n<p>You can add this to the functions.php file of your active theme, but to be on the safe side, I highly recommend adding the snippet using the <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a> plugin.<\/p>\n\n\n\n<p>After activating the snippet, the link will appear this way:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/d.pr\/i\/yawyby+\" alt=\"\" width=\"473\" height=\"417\"\/><\/figure><\/div>\n\n\n\n<p>Enjoy! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Don&#8217;t you wish that the Jetpack Debugger tool was more accessible in wp-admin? Right now, it&#8217;s tucked away in a link in the footer areas of the Jetpack sections. To add this as a submenu item of Jetpack, add this snippet: You can add this to the functions.php file of your active theme, but to&hellip; <a class=\"more-link\" href=\"https:\/\/www.alleba.com\/blog\/2021\/02\/19\/jetpack-debugger-code-snippet\/\">Continue reading <span class=\"screen-reader-text\">Jetpack Debugger Code Snippet<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[450,13],"tags":[],"class_list":["post-956","post","type-post","status-publish","format-standard","hentry","category-code-snippets","category-wordpress","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/paJQs-fq","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/posts\/956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/comments?post=956"}],"version-history":[{"count":0,"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/posts\/956\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/media?parent=956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/categories?post=956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alleba.com\/blog\/wp-json\/wp\/v2\/tags?post=956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}