How to fix class ct_fields { function ct_fields() } for PHP 7
-
I get this message: “Use of deprecated PHP4 style class constructor is not supported since PHP 7”
How can I fix this? This is the code:
if ( !class_exists( 'ct_fields' ) ) : class ct_fields { var $ct_type; var $ct_field_name; var $ct_field_label; var $ct_field_type ; var $ct_field_desc ; var $ct_field_val ; function ct_fields($taxonomy,$name,$label,$type,$desc,$val) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to fix class ct_fields { function ct_fields() } for PHP 7’ is closed to new replies.