Skip to content

Instantly share code, notes, and snippets.

  • Save encoderit-arman/589bb0bcf79bec843120b5754d6f46a6 to your computer and use it in GitHub Desktop.
Save encoderit-arman/589bb0bcf79bec843120b5754d6f46a6 to your computer and use it in GitHub Desktop.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'pthfc_add_form_function' not found or invalid function name in C:\laragon\www\wordpress\wp-includes\class-wp-hook.php on line 287
add_menu_page( 'PDF TO WP FORM CONVERTER', 'PDF TO WP FORM CONVERTER', 'manage_options', 'pthfc-converter', 'pthfc_main_description_fucntion' );
add_submenu_page("pthfc-converter", "Add Form", "Add Form", 'manage_options', "ptwc-add-form", "pthfc_add_form_function");
Change To :
add_menu_page( $this->plugin_name, 'PDF TO WP FORM CONVERTER', 'manage_options', 'pthfc-converter', array($this,'pthfc_main_description_fucntion') );
add_submenu_page("pthfc-converter", "Add Form", "Add Form", 'manage_options', "ptwc-add-form", array($this,'pthfc_add_form_function'));
You can follow this blog:
http://tumbledesign.com/fix-notice-has_cap-was-called-with-an-argument-that-is-deprecated-since-version-2-0-in-wordpress/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment