Advertisement
Guest User

WPML vs AIOSEOP

a guest
Sep 14th, 2011
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | None | 0 0
  1. /** All in one seo pack hook **/
  2.  
  3. function custom_aioseop_home_page_title($home_title){
  4. global $post,$aiosp;
  5. if ($aiosp->is_static_front_page() && $aiosp->internationalize(get_post_meta($post->ID, "_aioseop_title", true))){
  6. $home_title = $aiosp->internationalize(get_post_meta($post->ID, "_aioseop_title", true));
  7. }
  8. return $home_title;
  9. }
  10.  
  11.  
  12. function custom_aioseop_description($description){
  13. global $post,$aiosp;
  14. if ($aiosp->is_static_front_page() && $aiosp->internationalize(get_post_meta($post->ID, "_aioseop_description", true))){
  15. $description = $aiosp->internationalize(get_post_meta($post->ID, "_aioseop_description", true));
  16. }
  17. return $description;
  18. }
  19.  
  20.  
  21. function custom_aioseop_keywords($keywords){
  22. global $post,$aiosp;
  23. if ($aiosp->is_static_front_page() && $aiosp->internationalize(get_post_meta($post->ID, "_aioseop_keywords", true))){
  24. $keywords = $aiosp->internationalize(get_post_meta($post->ID, "_aioseop_keywords", true));
  25. }
  26. return $keywords;
  27. }
  28.  
  29.  
  30. add_filter('aioseop_home_page_title','custom_aioseop_home_page_title');
  31. add_filter('aioseop_description','custom_aioseop_description');
  32. add_filter('aioseop_keywords','custom_aioseop_keywords');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement