[WordPress] A foundation for WordPress Plugin Development that aims to provide a clear and consistent guide for building your plugins.
7.66k
stars
2.25k
forks
source link
Help Including Callback Function in Plugin Boilerplate #571
Open
GermanPearls opened 3 years ago
Trying the boilerplate for the first time and am running into problems with including functions used in hooks.
Here's what I did:
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/callback-functions.php';
$this->loader->add_action( 'frm_after_create_entry', $plugin_public, 'call-back-funciton', 30, 2);
But, the hook can't find the call-back-function. I get an error:
call_user_func_array() expects parameter 1 to be a valid callback....
What am I missing / doing wrong?