Skip to main content
added 5 characters in body
Source Link
RiddleMeThis
  • 3.8k
  • 8
  • 21
  • 30

I just had that problem and resolved it alone since i could not find the answer online. You just need to put that code inside an if. Only to run that code on attribute page.

if ($_GET['page']=='product_attributes') { add_filter( 'product_attributes_type_selector', function($array){ $array['test'] = __( 'Test', 'awcs' ); } ); }

if ($_GET['page']=='product_attributes') {
  add_filter( 'product_attributes_type_selector', function($array){
    $array['test'] = __( 'Test', 'awcs' );
  } );
}

I just had that problem and resolved it alone since i could not find the answer online. You just need to put that code inside an if. Only to run that code on attribute page.

if ($_GET['page']=='product_attributes') { add_filter( 'product_attributes_type_selector', function($array){ $array['test'] = __( 'Test', 'awcs' ); } ); }

I just had that problem and resolved it alone since i could not find the answer online. You just need to put that code inside an if. Only to run that code on attribute page.

if ($_GET['page']=='product_attributes') {
  add_filter( 'product_attributes_type_selector', function($array){
    $array['test'] = __( 'Test', 'awcs' );
  } );
}
Source Link

I just had that problem and resolved it alone since i could not find the answer online. You just need to put that code inside an if. Only to run that code on attribute page.

if ($_GET['page']=='product_attributes') { add_filter( 'product_attributes_type_selector', function($array){ $array['test'] = __( 'Test', 'awcs' ); } ); }