依然是打开 functions.php 在其中添加下面的代码。 remove_action('wp_head', 'wp_generator'); 除了上面说的这些,根据个人爱好,还可以删除一些作用不大的信息,不再细说。
With that quick definition, we will see an example action & filter hook. Let us say there’s a plugin that registers an action and filter as below: add_action( 'wp_head', 'tg_generator_head'); add_filter( 'get_pages', 'tg_filter_get_pages'); Now, to remove these action & filte...