Error in taxonomy.php

1

I have the following hindrance:

  

Fatal error: Can not redeclare add_term_meta () (previously declared in   /home/xxx/public_html/wp-includes/taxonomy.php:1757) in   /home/xxx/public_html/wp-content/themes/theleader/framework/inc/taxonomy-metadata.php   online 103

And I can not find a solution, suggestions?

    
asked by anonymous 11.08.2016 / 18:58

1 answer

1

The function add_term_meta() is being declared twice.

One in the file: /home/xxx/public_html/wp-includes/taxonomy.php

And another in the file: /home/xxx/public_html/wp-content/themes/theleader/framework/inc/taxonomy-metadata.php

A function can only be declared once.

Tip: You can create a separate file for this function, and in the two previous files you can do require_once 'pasta/arquivo_funcao.php';

    
11.08.2016 / 19:04