We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
call-back-function should be a function in the class {plugin_name}_Public
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: