{"id":50559,"date":"2016-08-28T17:57:43","date_gmt":"2016-08-28T17:57:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/files-in-use\/"},"modified":"2017-03-02T10:23:30","modified_gmt":"2017-03-02T10:23:30","slug":"files-in-use","status":"closed","type":"plugin","link":"https:\/\/fr.wordpress.org\/plugins\/files-in-use\/","author":9620164,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"trunk","tested":"4.7.33","requires":"3.1.0","requires_php":"","requires_plugins":"","header_name":"Files in use","header_author":"Nazmul Ahsan","header_description":"","assets_banners_color":"75787b","last_updated":"2017-03-02 10:23:30","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/nazmulahsan.me","header_plugin_uri":"http:\/\/medhabi.com","header_author_uri":"http:\/\/nazmulashan.me","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1547,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1485177","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1485177","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1485177","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1485156","resolution":"1","location":"assets"}},"screenshots":{"1":"Showing files in use in admin bar"}},"plugin_section":[],"plugin_tags":[76461,76459,76460,56545,71304],"plugin_category":[],"plugin_contributors":[88466],"plugin_business_model":[],"class_list":["post-50559","plugin","type-plugin","status-closed","hentry","plugin_tags-current-files","plugin_tags-files-in-use","plugin_tags-plugin-files","plugin_tags-template-files","plugin_tags-theme-files","plugin_contributors-mukto90","plugin_committers-mukto90"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/files-in-use_75787b.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/files-in-use\/assets\/screenshot-1.png?rev=1485156","caption":"Showing files in use in admin bar"}],"raw_content":"<!--section=description-->\n<h4>Key features<\/h4>\n\n<ul>\n<li>Show theme's template file of current page<\/li>\n<li>Other files that are used\/included by this template files, e.g. <code>header.php<\/code>, <code>footer.php<\/code> etc<\/li>\n<li>Show plugins' files that are being used by current page<\/li>\n<li>Each of the files are hyperlinked to the file editor. You can just click and edit any of the files.<\/li>\n<li>Multiple filter hooks enabled. For example, you can decide either you want to show plugins' files in the list or not.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload &#096;files-in-use&#096; to the &#096;\/wp-content\/plugins\/&#096; directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to show\/hide included child files along with main template file?<\/dt>\n<dd><p>There is a filter hook <code>cb_monitor_show_included_files<\/code> to show\/hide child files.\ne.g.\n    function my_function_to_show_child_files( $show ){\n        return true; \/\/ use false to hide\n    }\n    add_filter( 'cb_monitor_show_included_files', 'my_function_to_show_child_files' );<\/p><\/dd>\n<dt>How to show\/hide plugins' files that are currently in use?<\/dt>\n<dd><p>Use filter hook <code>cb_monitor_show_plugin_files<\/code> to show\/hide plugins' files.\ne.g.\n    function my_function_to_show_plugins_files( $show ){\n        return true; \/\/ use false to hide\n    }\n    add_filter( 'cb_monitor_show_plugin_files', 'my_function_to_show_plugins_files' );<\/p><\/dd>\n<dt>Are there any other hooks available?<\/dt>\n<dd><p>Yes, there are 5 filter hooks available.<\/p>\n\n<pre><code>\/\/ show\/hide child files\napply_filters( 'cb_monitor_show_included_files', true );\n\n\/\/ show\/hide theme files\napply_filters( 'cb_monitor_show_theme_files', true );\n\n\/\/ show\/hide plugins' files\napply_filters( 'cb_monitor_show_plugin_files', false );\n\n\/\/ set a label for the menu\napply_filters( 'cb_monitor_menu_label', '&lt;strong style=\"font-weight:bold;color:#fff\"&gt;Files in use: &lt;\/strong&gt;' );\n\n\/\/ add\/remove menu meta\napply_filters( 'cb_monitor_menu_meta', array( 'target' =&gt; '_blank' ) );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1 - 02.03.2017<\/h4>\n\n<ul>\n<li>[fix] Warning error fix<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"A simple WordPress plugin to show theme&#039;s and plugins&#039; files that are currently in use.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/50559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=50559"}],"author":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mukto90"}],"wp:attachment":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=50559"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=50559"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=50559"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=50559"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=50559"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=50559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}