filter not work
-
Dear Sir/Madam,
The default og:title is the post/page’s title, I want to add the site name before the title by using below filter code
function modify_open_graph_data($data) { $data['og:title']['value'] = $data['og:site_name']['value'] . $data['og:title']['value']; return $data; } add_filter('complete_open_graph_all_data', 'modify_open_graph_data');
What’s wrong to my code?
Best regards,
Kelvin
- The topic ‘filter not work’ is closed to new replies.