09/12/2019

Query mysql update home and siteurl table wp-option wordpress

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl.com', 'http://www.newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid […]
09/03/2020

Automatically Set the WordPress Image Title, Alt-Text & Other Meta

Chèn vào file function.php /* Automatically set the image Title, Alt-Text, Caption & Description upon upload --------------------------------------------------------------------------------------*/ add_action( 'add_attachment', 'my_set_image_meta_upon_image_upload' […]