install_plugin_overwrite_comparison

过滤钩子
apply_filters( 'install_plugin_overwrite_comparison', $table, $current_plugin_data, $new_plugin_data )
参数
  • (string) $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
    Required:
  • (array) $current_plugin_data Array with current plugin data.
    Required:
  • (array) $new_plugin_data Array with uploaded plugin data.
    Required:
定义位置
相关勾子
install_plugin_overwrite_actionsinstall_theme_overwrite_comparisoninstall_plugin_complete_actionsinstall_theme_overwrite_actionsinstall_plugins_pre_upload
相关方法
install_plugin_informationinstall_plugins_favorites_formload_plugin_textdomaininstall_plugins_uploaduninstall_pluginis_wp_version_compatible
引入
5.5.0
弃用
-

install_plugin_overwrite_comparison: 这是一个WordPress的过滤器钩子,用于修改在安装过程中覆盖一个插件时进行的比较。这个钩子可以用来改变默认的比较,以确定一个插件是否应该被覆盖。

过滤比较表输出,以便在上传时覆盖插件包。

echo apply_filters( 'install_plugin_overwrite_comparison', $table, $current_plugin_data, $new_plugin_data );

常见问题

FAQs
查看更多 >