- Python 3
- Pip 3
$ brew install python3| /* | |
| * Supposition v0.3a - an optional enhancer for Superfish jQuery menu widget | |
| * | |
| * Copyright (c) 2013 Joel Birch - based on work by Jesse Klaasse - credit goes largely to him. | |
| * Special thanks to Karl Swedberg for valuable input. | |
| * | |
| * Dual licensed under the MIT and GPL licenses: | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.gnu.org/licenses/gpl.html | |
| */ | 
| function direct_free_downloads_button($button) | |
| { | |
| global $product; | |
| if( $product->is_downloadable() AND $product->get_price() == 0 ) | |
| { | |
| $files = $product->get_files(); | |
| $files = array_keys($files); | |
| $download_url = home_url('?download_file='.$product->id.'&key='.$files[0].'&free=1' ); | 
| <?php | |
| /** | |
| * | |
| * This is used to regsiter a custom post type, custom taxonomy and provide template redirecting. | |
| * | |
| * This abstract class defines some base functions for using Custom Post Types. You should not have to | |
| * edit this abstract, only add additional methods if need be. You must use what is provided for you | |
| * in the interface. | |
| * | |
| */ | 
| INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, | |
| `user_status`) | |
| VALUES ('admin999', MD5('password999'), 'firstname lastname', '[email protected]', '0'); | |
| INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
| VALUES (NULL, (Select max(id) FROM wp_users), | |
| 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
| INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
| VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10'); | 
| <templateSet group="WordPress"> | |
| <template name="act" value="add_action( '$HOOK$', array( $this, '$FUNCTION$' ) );
$END$" description="add_action OOP WordPress" toReformat="true" toShortenFQNames="true"> | |
| <variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <variable name="FUNCTION" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <context> | |
| <option name="PHP" value="true" /> | |
| </context> | |
| </template> | |
| <template name="actp" value="add_action( '$HOOK$', array( $this, '$FUNCTION$' ) );
$END$" description="add_action procedural WordPress" toReformat="true" toShortenFQNames="true"> | |
| <variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> |