Yiedpozi
Yiedpozi

Reputation: 300

(WP) Override Plugin Function In Theme Functions

How to override function inside plugin and put in theme functions.php file? I've try using remove_filter and add_filter, apply_filter, add_action etc, but still not worked.

https://github.com/mikejolley/WP-Job-Manager/blob/master/wp-job-manager-template.php#L72

I want to override function on line 72. How can I done this? I don't want to edit plugin files because I just want this function replaced only when this theme activated. If not activated, function will be as the original function.

Upvotes: 0

Views: 770

Answers (1)

Maxim Pokrovskii
Maxim Pokrovskii

Reputation: 353

This function used by plugin. And no any filters or actions inside. So, my sorry, you can't solve this issue.

Upvotes: 1

Related Questions