Advertisement
websupporter

The WordPress repository slug problem.

Aug 11th, 2015
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Plugin Name: A completely other plugin
  4.  * Version: 0.9
  5.  * Description: This plugin does use the slug 'support-ticket/support-ticket.php', but it is not the "Support Ticket"
  6.  **/
  7.  
  8. /**
  9.  * More information about this demonstration can be found on my blog:
  10.  * http://websupporter.net/blog/the-problem-of-slug-identification-in-the-repository/
  11.  * Save this file as support-ticket/support-ticket.php
  12. **/
  13.  
  14. add_filter( 'the_content', 'support_ticket_alters_content_wow' );
  15. function support_ticket_alters_content_wow( $content ){
  16.     return "Isn't this nice? " . $content;
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement