Linux 软件免费装
Banner图

Files in use

开发者 mukto90
更新时间 2017年3月2日 18:23
捐献地址: 去捐款
PHP版本: 3.1.0 及以上
WordPress版本: 4.7

标签

template files theme files files in use plugin files current files loaded files

下载

1.0 1.1

详情介绍:

Key features

安装:

  1. Upload `files-in-use` to the `/wp-content/plugins/` directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

屏幕截图:

  • Showing files in use in admin bar

常见问题:

How to show/hide included child files along with main template file?

There is a filter hook cb_monitor_show_included_files to show/hide child files. e.g. function my_function_to_show_child_files( $show ){ return true; // use false to hide } add_filter( 'cb_monitor_show_included_files', 'my_function_to_show_child_files' );

How to show/hide plugins' files that are currently in use?

Use filter hook cb_monitor_show_plugin_files to show/hide plugins' files. e.g. function my_function_to_show_plugins_files( $show ){ return true; // use false to hide } add_filter( 'cb_monitor_show_plugin_files', 'my_function_to_show_plugins_files' );

Are there any other hooks available?

Yes, there are 5 filter hooks available. ` // show/hide child files apply_filters( 'cb_monitor_show_included_files', true ); // show/hide theme files apply_filters( 'cb_monitor_show_theme_files', true ); // show/hide plugins' files apply_filters( 'cb_monitor_show_plugin_files', false ); // set a label for the menu apply_filters( 'cb_monitor_menu_label', 'Files in use: ' ); // add/remove menu meta apply_filters( 'cb_monitor_menu_meta', array( 'target' => '_blank' ) );`

更新日志:

1.1 - 02.03.2017 1.0