In class actions

<?php

//Use to call a method of your class
add_action('switch_theme', array( &$this, 'my_method_name'), 1, 2);

//Use to call a static method of your class
add_action('switch_theme','MyClassName::my_static_method_name');

?>

0 Comments

You must be logged in to post a comment.