Want more features on Pastebin? Sign Up, it's FREE!

remove-mantra-footer-links.php

By: jan_dembowski on Sep 7th, 2013  |  syntax: PHP  |  size: 0.80 KB  |  views: 350  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Remove old copyright links
  4. add_action( 'init' , 'mh_remove_copyright_link' , 15 );
  5. function mh_remove_copyright_link() {
  6.         // remove_action( 'cryout_footer_hook' , 'mantra_copyright' , 11) ;
  7.         remove_action( 'cryout_footer_hook' , 'mantra_site_info' , 12) ;
  8.         // remove_action( 'cryout_footer_hook' , 'mantra_footer_social' , 13) ;
  9. }
  10.  
  11. // Add my own copyright text
  12. add_action( 'cryout_footer_hook' , 'mh_footer_info' , 30 );
  13. function mh_footer_info() {
  14.  
  15. $output  = '<div style="text-align:center;clear:both;padding-top:4px;" >';
  16. $output .= '<a href="http://www.example.com/">Some AMAZING LINKS FROM MARS goes here</a> | <a href="' . get_bloginfo( 'wpurl' ) . '">' . get_bloginfo( 'name' ) . '</a>';
  17. $output .= '</div><!-- #site-info -->';
  18.  
  19.    echo do_shortcode( $output );
  20. }
clone this paste RAW Paste Data