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
| location /laravel { | |
| alias /home/admin/web/wordpress/public_html/laravel/public; | |
| try_files $uri $uri/ @nested; | |
| location ~ \.php$ { | |
| fastcgi_param SCRIPT_FILENAME $request_filename; | |
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
| Ant Design | |
| https://github.com/websemantics/awesome-ant-design |
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
| UPDATE table SET field = replace(field, text_needs_to_be_replaced, text_required); | |
| https://smagic39.com |
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
| /* | |
| * WP REST API version 2.0-beta7 | |
| * API base url ishttp://www.example.com/wp-json | |
| * | |
| * Reference | |
| * https://developer.wordpress.org/rest-api/reference/media/ | |
| * | |
| * Description | |
| * an example of loading image to WordPress API using Guzzle | |
| * inspired by s-hiroshi's gist at https://gist.github.com/s-hiroshi/3477e07454d809b9d38f |
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
| /* | |
| * WP REST API version 2.0-beta7 | |
| * API base url ishttp://www.example.com/wp-json | |
| * | |
| * Reference | |
| * https://wordpress.org/support/topic/new-post-with-image | |
| */ | |
| /* | |
| * Get Guzzle HTTP Client. That client has been authenticated. | |
| */ |
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
| First in app/etc/env.php we have to add "profiler" key in the connection array: | |
| return array ( | |
| .... | |
| 'db' => | |
| array ( | |
| ..... | |
| array ( | |
| 'default' => | |
| array ( |
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
| Autoprefixer | |
| backrefs | |
| Boxy Theme Addon - Font Face | |
| CodeFormatter | |
| GoSublime | |
| JSLint | |
| markupsafe | |
| Materialize-White-Panels | |
| mdpopups | |
| Pretty JSON |
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=OjmZPPKaj6A |
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
| /** | |
| $term_id = 1; | |
| $taxonomy_name = 'category'; | |
| $args = array( 'parent' => $term_id); | |
| $termchildren = get_product_children($term_id, $taxonomy_name); | |
| **/ | |
| function get_product_children( $term_id, $taxonomy ) { | |
| if ( ! taxonomy_exists( $taxonomy ) ) { | |
| return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) ); | |
| } |
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
| Name Description | |
| wp scaffold child-theme | |
| Generate child theme based on an existing theme. | |
| wp scaffold plugin | |
| Generate starter code for a plugin. | |
| wp scaffold plugin-tests | |
| Generate files needed for running PHPUnit tests in a plugin. |