• Resolved manx89

    (@manx89)


    Cze??,
    mam w?asne pole utworzone w ACF (advanced custom fields). Jest jaki? sposób, ?e Twój plugin zadzia?a? w takim w?asnym polu?

    Pozdrawiam

Viewing 1 replies (of 1 total)
  • Thread Starter manx89

    (@manx89)

    Poszuka?em i znalaz?em, kod do wklejenia do functions.php

    
    function acf_orphans($value, $post_id, $field) {
      if ( class_exists( 'iworks_orphan' ) ) {
        $orphan = new \iworks_orphan();
        $value = $orphan->replace( $value );
      }
      return $value;
    }
    add_filter('acf/format_value/type=textarea', 'acf_orphans', 10, 3);
    add_filter('acf/format_value/type=wysiwyg', 'acf_orphans', 10, 3);
    
Viewing 1 replies (of 1 total)
  • The topic ‘ACF – w?asne pole’ is closed to new replies.