Is there a problem with the wordpress Bible source code? Wordpress & nbsp; Bible & nbsp; an example is provided when you talk about Chapter & nbsp; 5: & nbsp; Extending & nbsp; WordPress & nbsp; with & nbsp; Plugins, I encountered such a problem during the trial. could you please kindly advise: Warning: & nbs is there a problem with the source code of the wordpress Bible?
The wordpress Bible provides an example of Chapter 5: Extending WordPress with Plugins. I encountered this problem during my trial:
Warning: call_user_func_array () expects parameter 1 to be a valid callback, function 'Copyright-notices' not found or invalid function name in E: \ xampp \ htdocs \ chinese \ wp-supported des \ plugin. php on line 405:
Call_user_func_array ($ the _ ['function'], array_slice ($ args, 0, (int) $ the _ ['accepted _ args '])
Appendix:
/*
Plugin Name: Copyright Notices
Plugin URI: http://emmense.com/copyright-notices/
Description: A plugin that allows the user to set Copyright text in the theme and control it from WordPress Admin.
Author: Aaron mongoell
Version: 1.0
Author URI: http://technosailor.com/
*/
Function i18n_copyright ()
{
$ Plugin_path = plugin_basename (dirname (_ FILE _). '/translations ');
Load_plugin_textdomain ('Copyright-notices', $ plugin_path );
}
Add_action ('init ', 'i18n _ copyright ');
Function copyright_notices_admin_page (){
Add_submenu_page ('ins ins. php ',__ ('copyright Notices configuration'), _ ('copyright Notices configuration', 'Copyright-notices'), 0, 'manage _ options ', 'Copyright-notices', 'copyright _ notices_admin ');
}
Add_action ('admin _ menu ', 'copyright _ notices_admin_page ');
Function copyright_notices_admin ()
{
If ($ _ POST ['submit '])
{
If (check_admin_referer ('copyright _ notices_admin_options-update '))
{
$ Options_saved = false;
If ($ oldvalue = get_option ('copyright _ notices_text '))
{
Update_option ('copyright _ notices_text ', $ _ POST ['copyright _ text']);
If ($ oldvalue = get_option ('copyright _ notices_text '))
{
$ Options_saved = true;
}
}
Else
{
If (add_option ('copyright _ notices_text ', $ _ POST ['copyright _ text'])
{
$ Options_saved = true;
}
}
}
}
If ($ options_saved)
{
Echo'
'. _ ('Options saved', 'Copyright-notices ').'.
';
}
?>
:
"/>