You can filter 'get_comment_author_IP'
:
add_filter( 'get_comment_author_IP', 'wpse_77254_trim_comment_ip' );
function wpse_77254_trim_comment_ip( $ip )
{
return implode( '.', array_slice(explode( '.', $ip ), 2) ) . '…';
}
Note this will fail with IPv6 addresses.
Related Posts:
- Load more AJAX on WP Query
- Using AJAX to return search form results
- Foreach-generated custom tax queries, each with an ajax “Load more” button
- Update Loop with Form
- Refine/Filter WP_Query Posts with jQuery or Ajax
- Display posts if specific country
- How can I convert results of WP_Query (of Custom Post Type, with Custom Fields) to JavaScript?
- Load More Posts Button – AJAX
- Filter wordpress post categories with jquery/ajax and pagination?
- how update data through ajax and jquery
- Change AJAX filter from POST to GET for URL Parameters
- Loading two different AJAX requests on two different pages
- Ajax (jquery) wp_query pagination returns -1
- WordPress AJAX Request returns 400
- WordPress live search and filter custom fields
- WordPress live search and filter
- Slick slider for post doesn’t display anything
- Filter admin ajax data by url query
- Finding post ID dynamically on click
- How to use jQuery validation to set the search bar to accept only a specific input?
- WordPress conflict with multiple load more posts functions on click
- how to avoid reloading/refresh the page when displaying the post of wp_list_categories
- How to solve this script problem in theme directory?
- Sorting Posts Based On Meta Value Using AJAX
- Loop the posts between two dates selected using jquery datepicker
- Custom search: Search posts but display parent page in results
- Stylesheet won’t load even when linked
- AJAX search function resets wp_query vars
- WordPress Ajax search filter on dropdown select
- WP_Query with “post_title LIKE ‘something%'”?
- How to extend WP_Query to include custom table in query?
- Best way to detect if you are in a SINGLE POST page
- compare meta_query in get_posts arguments
- How to do a wp_query using “BETWEEN” with two meta_values?
- How to display post from current Taxonomy in archive page?
- Getting attachments by meta value
- WP_Query pulling an extra post per page
- WP_Query with LIKE in meta gives strange query
- WP_Query not working as expected for attachments and custom meta_query
- Use Transient API to cache queries for all posts in all categories?
- How to Get All Posts but the Private ones?
- querying on custom meta fields and sorting them by custom meta
- WP Query by Gutenberg block and get its attribute
- Custom URl parameter
- order by multiple meta keys in pre_get_posts
- Order By Multiple Meta Fields
- WP_Query Performance Issues with meta_query
- Advanced WP Query hogs the SQL server
- How to use order RAND() on WordPress?
- WP_QUERY loop, offset in the arguments and the paginate_links – can these work together?
- Is it faster to query records using $wpdb instead of Wp_Query?
- Meta box dropdown of custom posts
- Query: offset post list, unless it’s a specific category
- Get posts for which a custom field is not present, with get_posts
- Output an array of terms for a ‘tax_query’ => array()
- WP_Query with ajax handler returns the same posts
- querying data via $wpdb and get_row
- Combining categories (Query posts with multiple taxonomy terms)
- Filtering out child category posts from parent category archive not working
- wp_update_post not working
- WP_Query with offset and ‘orderby’ => ‘rand’, offset not working
- WP_Query Limit Data_Query last 90 days
- Sort WordPress Posts Meta value by Week not Day
- WP_Query arguments order
- Best choice for multiple loop in page?
- new WP_Query messes up pagination
- How to create custom query by keyword in post title?
- Get Child Category only
- Order is breaking wp_query
- How to display all posts not in a post_format
- How to filter query loop block with a search string from the query parameters
- WP_Query – How to get all posts of specific days of week by custom field date?
- Use title of post as argument for query
- How can I comment comma-separated array values?
- WP_Query returns no posts for category
- Different Loop for tag pages?
- Orderby two meta fields not working
- Post__not_in only removing first 2 pages
- Query posts by searching for a string in a meta field
- Adding pagination to sub-wp_query within a singular post page
- How can I build a query that returns all attachments of a page and it’s children pages?
- Query ACF relationship field – Comparator IN – Value array
- get_post_format is not returning standard
- Duplice post with standard WP loop – fixed by using query_posts() instead
- WP_Query paginate with one term per page?
- Exclude parent categories from recent posts list
- Filtering WP_Query based on wp_postmeta keys values
- using custom meta user data to run queries in WordPress
- post_type not working when tag__in is present?
- posts_per_page increment additional post
- WordPress wp_query add custom query as field
- 3 wp_query on one page with pagination for last query
- Optimize WP_Query
- Add a custom variable to query page object
- Read more redirection problem
- Help in query for list links
- Multiple loops on index page with sticky post and pagination
- Randomly display posts on a site hosted by WPEngine? [closed]
- tax_query not working properly with get_posts
- Get access to all terms associated to each post that the wp_query loop displays