how to fix this format of php?
-
<?php my_own_field 'my_field_name', array( 'field1' => __( '<?php echo esc_attr( $snt['field1'] ); ?>'), 'field2' => __( '<?php echo esc_attr( $snt['field2'] ); ?>') ), $string->get_value( 'my_field_name' )); ?>
this is just part of the code for creating a new field. The formatting is wrong, because of the t_string, the quotes….I cannot have
( ‘<?php echo esc_attr( $snt[‘field1′] ); ?>’),four single quotes in one line, so what can i do to fix this? can anyone help please
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘how to fix this format of php?’ is closed to new replies.