This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/azeemhassni/simplest-php-router | |
| https://github.com/arvindsvt/PHP-Custom-MVC | |
| <?php namespace EasyRouter { | |
| /** | |
| * A simple, Object Oriented, yet effective REST capable PHP micro router. Can | |
| * easily be used as a `stand-alone` Router or implemented with composers PSR4 | |
| * or your own PSR4 autoloader. See link reference below for a simple, and yet | |
| * effective PSR4 Autoloader I had made. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Function to handle the thumbnail request | |
| function get_the_post_thumbnail_src($img) | |
| { | |
| return (preg_match('~\bsrc="([^"]++)"~', $img, $matches)) ? $matches[1] : ''; | |
| } | |
| function wpvkp_social_buttons($content) { | |
| global $post; | |
| if(is_singular() || is_home()){ | |
| // Get current page URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Function to handle the thumbnail request | |
| function get_the_post_thumbnail_src($img) | |
| { | |
| return (preg_match('~\bsrc="([^"]++)"~', $img, $matches)) ? $matches[1] : ''; | |
| } | |
| function wpvkp_social_buttons($content) { | |
| global $post; | |
| if(is_singular() || is_home()){ | |
| // Get current page URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.youtube.com/watch?v=Q5QkgK3xcDo | |
| <?php | |
| /** | |
| * @package WPCamp 2019 | |
| * @version 1.0 | |
| */ | |
| /* | |
| Plugin Name: rewrite api custom permalink - BUILD | |
| Description: Creates custom post type and custom permalink | |
| Author: Sergio |
OlderNewer