require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality

thanks again @Rup for sparking the path to this answer! rendering out directly from the required file was at least part of the problem. i believe the other part was not rendering from inside a function as well as not hooking all of that functionality into an action in the target file. the problem vanishes … Read more

Like and Dislike Buttons on Post with Counter – Only allow one click per post per user session

Untested Pseudo-code examples, which you can expand to resolve the issues: function get_the_user_ip() { if ( ! empty( $_SERVER[‘HTTP_CLIENT_IP’] ) ) { //check ip from share internet $ip = $_SERVER[‘HTTP_CLIENT_IP’]; } elseif ( ! empty( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) { // to check ip is pass from proxy $ip = $_SERVER[‘HTTP_X_FORWARDED_FOR’]; } else { $ip = … Read more

admin panel – How to remove “delete” button from category editing page

There is some modification in your code, insted of this class .taxonomy-category tr:hover .row-actions apply css on this class .taxonomy-category .row-actions span.delete, it willl work. Here is whole code. add_action(‘admin_head’, ‘hide_category_buttons’); function hide_category_buttons() { echo ‘<style> .taxonomy-category .row-actions span.delete { visibility: hidden; } </style>’; }