Edit text of WordPress “Register” button

To change a particular string, you can use the gettext hook: /* * Using priority 20 to override the default 10. * If another theme or plugin has a higher number, * you might need to raise this. */ add_filter( ‘gettext’, ‘wpse_change_strings’, 20 ); function wpse_change_strings( $translated_text ) { // If this is the specific … Read more

Can’t save changes or modify settings in Dashboard but Pages and Posts are fine

Figured it out. In an attempt to optimize Astra theme’s performance, I modified the PHP settings in cPanel > MultiPHP INI Editor based on recommendations online. However, I wasn’t careful enough with my changes. I had neglected to include M in post_max_size, using only a number. 😐 After adding it, everything started to work correctly … Read more

Problem in getting user comments permalinks

Hi @Ayaz Malik: You need to use the function get_comment_link(). I’ve rewritten your code using some improved techniques and included the function call in place of what you had: global $wpdb; $sql =<<<SQL SELECT {$wpdb->comments}.comment_ID, {$wpdb->comments}.comment_post_ID, {$wpdb->comments}.comment_content, {$wpdb->posts}.post_title FROM {$wpdb->comments} INNER JOIN {$wpdb->posts} ON {$wpdb->comments}.comment_post_id={$wpdb->posts}.ID WHERE 1=1 AND {$wpdb->comments}.user_id = %d AND {$wpdb->comments}.comment_approved = 1 … Read more