This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
| function add_nonbreaking_space_to_text($title, $id = null){ | |
| $title = explode(' ', $title); | |
| $length = count($title); | |
| if( $length >0){ | |
| $title[ $length-2 ] .= " " . $title[ $length-1 ]; | |
| array_pop($title); | |
| } | |
| return implode(" ", $title); | |
| } |
| <?php | |
| /* | |
| ############################## | |
| ########### Search ########### | |
| ############################## | |
| Included are steps to help make this script easier for other to follow | |
| All you have to do is add custom ACF post types into Step 1 and custom taxonomies into Step 10 | |
| I also updated this work to include XSS and SQL injection projection | |
| [list_searcheable_acf list all the custom fields we want to include in our search query] |
| <?php | |
| /* | |
| * | |
| * WP-siege: Generates list of all published URLs from a Wordpress site, for use with Siege. | |
| * Author: Alexandre Plennevaux alexandre@pixeline.be | |
| * | |
| */ | |
| //path to a wp-load file | |
| include( './wp-load.php' ); |
This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
| <?php | |
| // Drop this into your functions.php | |
| /** | |
| * ACF: Keep the last edited tab selection when post refreshes. | |
| * | |
| * When a post containing ACF tabs is opened for edits, the currently selected tab | |
| * will be saved in a transient. Upon save or refresh of the page, the last selected | |
| * tab will be selected again, making it more convenient to work with ACF tabs. |
Before getting into the matter, I wanted to set the stage. We are essentially going to talk about three things today.
How to have some fun using the terminal.
sudo apt-get install cowsaysudo apt-get install fortunesudo apt-get install figletruby -vgem install lolcat| <?php | |
| # Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| # http://creativecommons.org/publicdomain/zero/1.0/ | |
| function postToMedium($data=array()) { | |
| $user_id = "XXXX"; | |
| $accessToken = "XXXX"; | |