Filter to change canonical URL protocol

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';
}
[i]
[i]
Skip to toolbar