Admin wp_capabilities wp_user_level 10
a:1:{s:13:"administrator";b:1;}
Contributor wp_capabilities wp_user_level 1
| <?php | |
| /********************************************************/ | |
| // Add GameMaker scripts in WordPress <head> | |
| /********************************************************/ | |
| add_action('wp_head', 'ssws_Add_GameMaker_scripts'); | |
| function ssws_Add_GameMaker_scripts() { | |
| // wrap the videogame code in an if() condition to match only a certain condition(s): | |
| // if (is_page( 42 )) { // match page ID, less flexible | |
| if (is_page( 'games' )) { // match page slug | |
| // https://developer.wordpress.org/reference/functions/is_page/#user-contributed-notes |
| Key/Command | Description |
|---|---|
| Tab | Auto-complete files and folder names |
| Ctrl + A | Go to the beginning of the line you are currently typing on |
| Ctrl + E | Go to the end of the line you are currently typing on |
| Ctrl + U | Clear the line before the cursor |
| Ctrl + K | Clear the line after the cursor |
| Ctrl + W | Delete the word before the cursor |
| Ctrl + T | Swap the last two characters before the cursor |
| // Útil para filtros de Gutenberg como "allowed_block_types" | |
| archives | |
| audio | |
| button | |
| categories | |
| code | |
| column | |
| columns | |
| coverImage |
| <?php | |
| // allow direct access to the file via front-end | |
| // http://twentyninteen.local/wp-content/themes/twentynineteen/wp-content-task-runner.php | |
| $path = preg_replace('/wp-content.*$/', '', __DIR__); | |
| require_once $path . 'wp-load.php'; | |
| // test that we get some content | |
| // var_dump(get_post(1)); | |
| // A collection of all APIs available: |
| <?php | |
| /** | |
| * Plugin Name: Custom API | |
| * Plugin URI: http://chrushingit.com | |
| * Description: Crushing it! | |
| * Version: 1.0 | |
| * Author: Art Vandelay | |
| * Author URI: http://watch-learn.com | |
| * YouTube URI: https://www.youtube.com/watch?v=C2twS9ArdCI | |
| */ |
| // First commit any outstanding code changes, and then, run this command: | |
| git rm -r --cached . | |
| // This removes any changed files from the index(staging area), then just run: | |
| git add . | |
| // Commit | |
| git commit -m "Remove .gitignore cached files" |