plugin only for a product id

Question

! i use this plugin , but i need only work on free product or specific product id

    //Textos traducidos a medida
add_filter(  'gettext',  'wps_translate_words_array'  );
add_filter(  'ngettext',  'wps_translate_words_array'  );
function wps_translate_words_array( $translated ) {


 $words = array(
                    // 'palabra a traducir' = > 'traducción'
                    'Entradas' => 'Noticias',
                );

 $translated = str_ireplace(  array_keys($words),  $words,  $translated );
 return $translated;
}

thxx 🙂

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/plugin-only-for-a-product-id/">

plugin only for a product id</a>
0
Luis 3 months 0 Answers 30 views 0

Leave an answer