Advertisement
Guest User

Untitled

a guest
Jan 19th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package Hello_World
  4.  * @version 1.6
  5.  */
  6. /*
  7. Plugin Name: Hello World
  8. Description: Hello, ny name is Dimmy. It is my first plugin and i hope
  9. i will can learn API of it great CMS
  10. Author: Dimmy Walker
  11. Version: 0.10-pre-alpha
  12. */
  13.  
  14.  
  15. function hello_in_title($title)
  16. {
  17.   $post_id = "№ of this post is " . get_the_ID() . "\n";
  18.   return "Hello! $post_id " . $title;
  19. }
  20.  
  21. add_filter( 'the_title', 'hello_in_title');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement