The usual settings implemented within plugin files. Here just to speed things up. Implement.
Add $this->sections = $this->get_sections(); to __construct, and define add_action('admin_init' [$this, 'register_settings']);
| <VirtualHost *:80> | |
| ServerAlias localhost *.dev | |
| VirtualDocumentRoot /Users/%USERNAME%/Sites/websites/%1/public | |
| UseCanonicalName Off | |
| <Directory "/Users/%USERNAME%/Sites/Websites"> | |
| Options FollowSymLinks | |
| AllowOverride All | |
| Order allow,deny | |
| Allow from all | |
| Require all granted |
| <?php if (has_post_thumbnail()): ?> | |
| <?php | |
| $id = get_post_thumbnail_id(); | |
| $src = wp_get_attachment_image_src($id, 'full')[0]; | |
| $srcset = wp_get_attachment_image_srcset($id, 'full'); | |
| $sizes = wp_get_attachment_image_sizes($id, 'full'); | |
| $alt = get_post_meta($id, '_wp_attachment_image_alt', true); | |
| ?> |
| SELECT id, ( 6371 * acos( cos( radians($LAT) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians($LNG) ) + sin( radians($LAT) ) * sin( radians( lat ) ) ) ) AS distance | |
| FROM table_name | |
| HAVING distance < 15 | |
| ORDER BY distance | |
| LIMIT 0 , 20; |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_bottom": 2, | |
| "caret_extra_top": 2, | |
| "caret_extra_width": 2, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/User/SublimeLinter/Agila Oceanic Next (SL).tmTheme", | |
| "drag_text": false, | |
| "font_face": "Source Code Pro Medium", |
Every now and then you change the site url. You need to make sure you're updating your database references from the old site to the new one and this handly little snippet will help you do that.
Make sure you change 'wp_' to whatever your prefix is set at for your database, update your URLs and then run the commands.