• Foto de perfil de john-smith

      john-smith ha publicado una actualización

      Hace 8 meses

      ¿Cómo puedo modificar el yith_wcan_terms_on_first_loading filter hook en el plugin gratuito YITH del repositorio de WordPress para cambiar su valor?

      Estoy intentando establecer el valor 20 utilizando el siguiente código:


      add_filter( 'yith_wcan_terms_on_first_loading', function( $number ) { $number = 20; return $number; }, 10, 1 );

      I’ve also attempted to execute this code within the init y plugins_cargados action hooks, but it still doesn’t seem to work. What could be the issue, and how can I ensure the filter works as expected?

      OrionTraveler2 y tomsqum
      0 Comentarios