Is there any problem with the wordpress Bible source code?

Source: Internet
Author: User
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 ').'.

';

}

 

?>









:

"/>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.