PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings>Code Style>PHP. - Select
Set From...(top right of window) >Predefined Style>WordPress.
No longer need to muck with this import! :)
| <?PHP | |
| // Generates a strong password of N length containing at least one lower case letter, | |
| // one uppercase letter, one digit, and one special character. The remaining characters | |
| // in the password are chosen at random from those four sets. | |
| // | |
| // The available characters in each set are user friendly - there are no ambiguous | |
| // characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
| // makes it much easier for users to manually type or speak their passwords. | |
| // | |
| // Note: the $add_dashes option will increase the length of the password by |
| import numpy as np | |
| from scipy.sparse import csc_matrix | |
| def pageRank(G, s = .85, maxerr = .001): | |
| """ | |
| Computes the pagerank for each of the n states. | |
| Used in webpage ranking and text summarization using unweighted | |
| or weighted transitions respectively. |
| { | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store", | |
| "._*" | |
| ], | |
| "folder_exclude_patterns": |
| <snippet> | |
| <content><![CDATA[ | |
| console.log(" /"); | |
| console.log(" .7"); | |
| console.log(" \\\ , //"); | |
| console.log(" |\\\.--._/|//"); | |
| console.log(" /\\\ ) ) ).'/"); | |
| console.log(" /( \\\ // /"); | |
| console.log(" /( J`((_/ \\\"); | |
| console.log(" / ) | _\\\ /"); |
| #!/usr/bin/env php | |
| <?php | |
| $serialized = file_get_contents($argv[1]); | |
| $obj = unserialize($serialized); | |
| $json_obj = json_encode($obj, JSON_PRETTY_PRINT); | |
| echo "$json_obj\n"; |
| INITIALISATION | |
| ============== | |
| load wp-config.php | |
| set up default constants | |
| load wp-content/advanced-cache.php if it exists | |
| load wp-content/db.php if it exists | |
| connect to mysql, select db | |
| load object cache (object-cache.php if it exists, or wp-include/cache.php if not) | |
| load wp-content/sunrise.php if it exists (multisite only) |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| if (function_exists(wpseo_autoload)) { | |
| function krafit_repair_wpseo() { | |
| ?> | |
| <style> | |
| #adminmenu #toplevel_page_wpseo div.wp-menu-image img { | |
| display: none; | |
| } | |
| #adminmenu #toplevel_page_wpseo div.wp-menu-image::before { | |
| content: "\f511"; |