Download WP-CLI
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
Test to see if it works correctly
php wp-cli.phar --info
Add extra permissions
<?php | |
// functions.php | |
function wp_loorlab_redefine_locale($locale) { | |
if( is_admin() ): | |
switch_to_locale('en_US'); | |
endif; | |
} | |
add_filter('init','wp_loorlab_redefine_locale'); |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://domain.com%{REQUEST_URI} [L,R=301,NC] | |
RewriteCond %{HTTP_HOST} ^www.domain.com [NC] | |
RewriteRule (.*) https://domain.com%{REQUEST_URI} [L,R=301,NC] |
Function URL(Hyperlink As Range) | |
URL = Hyperlink.Hyperlinks(1).Address | |
End Function |
Last updated: 2022-05-14
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs
<?php | |
// functions.php | |
add_filter( 'login_display_language_dropdown', '__return_false' ); |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
<div class="form-group"> | |
<label for="departamento"><strong>DEPARTAMENTO</strong></label> | |
<select class="form-control" id="departamento" name="departamento" required> | |
<option value = ""> </option> | |
<option value = "Amazonas">Amazonas</option> | |
<option value = "Antioquia">Antioquia</option> | |
<option value = "Arauca">Arauca</option> | |
<option value = "Atlántico">Atlántico</option> | |
<option value = "Bolívar">Bolívar</option> | |
<option value = "Boyacá">Boyacá</option> |
/* step #1 insert a record on you wp_posts table for your attachment */ | |
INSERT INTO wp_posts (post_type, guid, post_status, post_mime_type,post_parent) VALUES ('attachment', '".$filename."', 'inherit', 'image/jpeg',".$parentpostid."); | |
/* step #2 create a post meta record on wp_postmeta for your attachment */ | |
INSERT INTO wp_postmeta (meta_value, meta_key, post_id) VALUES ('".$filename."', '_wp_attached_file',".$attachmentid."); | |
/* step #3 create a post meta record to identify the attachement post as the thumbnail for the post you are attaching your thumbnail into. */ | |
INSERT INTO wp_postmeta (meta_value, meta_key, post_id) VALUES (".$attachmentid.", '_thumbnail_id',".$parentpostid."); |