Action: Doing new things. Ex. adding CSS and JS.
Filter: Doing something which is already in WordPress. Adding or removing some things. Assume adding some text after post content. It means doing something with WordPress.
Example code:
add_action('admin_menu','my_func',8,2);
function my_func($one, $two){
//Something here …
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…