Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter RonaldS

    (@norus)

    I have add this direct under
    $tip = ”;

    if ( ! function_exists( ‘get_serach_fields_multi_select’ ) ) {

    function get_serach_fields_multi_select($value) {
    $selections = (array) get_option( $value[‘id’] );

    Plugin Author Chetan Khandla

    (@ckhandla94)

    we are not using $tip variable. you can remove it.

    If you want to define $tip as null ($tip = '';) then you must have to define inside the function so, you should be use like below.

    if ( ! function_exists( 'get_serach_fields_multi_select' ) ) {
    function get_serach_fields_multi_select($value) {
    $tip = '';
    $selections = (array) get_option( $value['id'] );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error on Undefined variable’ is closed to new replies.