• sara etemad

    (@sara-etemad)


    hi dears
    I am updating my website to PHP 7.2 but unfortunately, I have received this error in template files:

    Function create_function() is deprecated

    How should I correct it? anybody can help me in new version PHP?

    add_action( ‘widgets_init’, create_function( ”, ‘register_widget( “Opening_Time” );’ ) );

    thank you very much

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Function create_function() is deprecated’ is closed to new replies.