function gt_get_post_view() { $count = get_post_meta( get_the_ID(), ‘post_views_count’, true ); return “$count views”; } function gt_set_post_view() { $key = ‘post_views_count’; $post_id = get_the_ID(); $count = (int) get_post_meta( $post_id, $key, true ); $count++; update_post_meta( $post_id, $key, $count ); } function gt_posts_column_views( $columns ) { $columns[‘post_views’] = ‘Views’; return $columns; } function gt_posts_custom_column_views( $column ) { if […]
define(‘WP_POST_REVISIONS’, 10);
// Empty trash after 7 days define (‘EMPTY_TRASH_DAYS’, 7);
function my_admin_styles() { echo ‘ ‘; } add_action(‘admin_head’, ‘my_admin_styles’);
javascript:(function() { excludes = []; scripts = document.querySelectorAll(“script”); scripts.forEach(e => { if (!e.defer && e.src) { excludes.push(e.src); } }); console.log(excludes); })();
/****************************************** Disable – Recaptcha badge v3 ******************************************/ .grecaptcha-badge { opacity: 0; }