Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter word45press

    (@word45press)

    function my_func($attrs, $_meta, $_ptype, $_index)
    {
    $ks_valle = ‘test’;
    $attrs = ‘ name=”‘. esc_attr($_meta[“name”] . $_index) .'” data-fkey=”‘. $_meta[“key”] .'” ‘. $placeholder .’ data-mandatory=”‘ . $_meta[“required”] . ‘” ‘. $_readonly .’ data-field-type=”‘. $_meta[“type”] .'” autocomplete=”off” readonly value=”‘.$ks_valle.'” ‘;

    return $attrs;
    }
    add_filter(‘wccpf_before_preparing_common_attrs’, ‘my_func’, 10, 4);

    Plugin Contributor Sark

    (@sarkware)

    SO the issue is solved.?

    Thread Starter word45press

    (@word45press)

    good morning sark
    The hook has been resolved, but with the clone settings it doesn’t show up. Please see the image.
    Is there a problem somewhere?

    function my_func($attrs, $_meta, $_ptype, $_index)
    {
    $ks_valle = ‘test’;
    $attrs = ‘ name=”‘. esc_attr($_meta[“name”] . $_index) .'” data-fkey=”‘. $_meta[“key”] .'” ‘. $placeholder .’ data-mandatory=”‘ . $_meta[“required”] . ‘” ‘. $_readonly .’ data-field-type=”‘. $_meta[“type”] .'” autocomplete=”off” readonly value=”‘.$ks_valle.'” ‘;
    
    return $attrs;
    }
    add_filter(‘wccpf_before_preparing_common_attrs’, ‘my_func’, 10, 4);

    https://www.keizu-studio.com/wp-content/uploads/2022/09/ss-scaled.jpg

    Thread Starter word45press

    (@word45press)

    good morning. Could you check the image?

    When cloned, the value is written in the html source, but it is actually blank.

    Last time, I presented the function, so please check it. It is simply a test with arbitrary values.

    Thread Starter word45press

    (@word45press)

    Does the clone use javascript?

    Please look at the image and reply.
    https://www.keizu-studio.com/wp-content/uploads/2022/09/ss-scaled.jpg

    It has not been resolved due to clone failure.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘cloned wcff_builder.php’ is closed to new replies.