Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Plugin Likes
- Description: Plugin para dar like o dislike
- Author: Guillermo Torrejon
- */
- // EJEMPLO 1 : Filtro que muestra cuantos días hace que se escribió cada entrada
- add_filter('the_content', 'showlike');
- function showlike($content){
- if (is_single()){
- $content.=
- '<form method="get">
- <input type="radio" name="Like" value="0"/>
- <input type="radio" name="Like" value="1"/>
- <button type="submit"/>
- </form>
- ';
- }
- return $content;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement