I implement a class
structure in my plugin, for example:
class Ethans_Plugin {
public function __construct() {
add_filter( 'admin_init', array( $this, 'admin' ), 10, 1 );
add_action( 'admin_footer', array( $this, 'footer' ), 10, 1 );
}
public function admin() {
# code here...
}
public function footer() {
# code here...
}
}
When I define functions with generic names such as admin
or footer
will this conflict with any other function that have the same names? Or, since they are within a class, these function names will make them unique?