-
john-smith a publié un message
Comment puis-je modifier le
yith_wcan_terms_on_first_loading
dans le plugin gratuit YITH du dépôt WordPress pour changer sa valeur ?J'essaie de fixer la valeur à
20
en utilisant le code suivant :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
etplugins_loaded
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?