Title: Give object&#039;s function for filter param?
Last modified: August 19, 2016

---

# Give object's function for filter param?

 *  Resolved [frontline](https://wordpress.org/support/users/frontline/)
 * (@frontline)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/give-objects-function-for-filter-param/)
 * Is it possible to pass object’s function (for example a static one) to a hook(
   action/filter doesn’t matter) as a parameter? I’m guessing it’s very easy but
   i spent some time trying to do that and … can’t figured out.
 * Thank you in advanced.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/give-objects-function-for-filter-param/#post-1926700)
 * Not sure what you want. Can you give more detail and an example?
 *  Thread Starter [frontline](https://wordpress.org/support/users/frontline/)
 * (@frontline)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/give-objects-function-for-filter-param/#post-1926789)
 * Well … i spent more time on it and got the result.
 * $obj = new MyObjInstance();
    add_action(‘admin_init’, array($obj, ‘registerScripts’));
 * That’s what i needed. Anyway, 10x for the interest 🙂
 *  [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * (@123milliseconds)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/give-objects-function-for-filter-param/#post-1926790)
 * Please mark thread as resolved so that
 * – others with similar problem can see it as resolved and will read this thread
   for help if they have similar problem
 * – people providing help see it as resolved and will not waste time reading this
   post.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Give object's function for filter param?’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [parameter](https://wordpress.org/support/topic-tag/parameter/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/give-objects-function-for-filter-param/#post-1926790)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
