WordPress开发者和主题制作者的搜索引擎



wp_plugin_update_rows ›

Since2.9.0
已弃用n/a
wp_plugin_update_rows ( 没有参数 )
定义在:
文档:

暂无描述



源码

function wp_plugin_update_rows() {
	if ( ! current_user_can( 'update_plugins' ) ) {
		return;
	}

	$plugins = get_site_transient( 'update_plugins' );
	if ( isset( $plugins->response ) && is_array( $plugins->response ) ) {
		$plugins = array_keys( $plugins->response );
		foreach ( $plugins as $plugin_file ) {
			add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 );
		}
	}
}