Filter to change canonical URL protocol

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

To change the protocol used for canonical URLs output by All in One SEO Pack, use the following code (return either http or https):

add_filter( 'aioseop_canonical_protocol' , 'change_canonical_url_protocol' );

function change_canonical_url_protocol(){
 return 'http';
}

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar