Conversation
|
Will do what I can to get some feedback and review your way ASAP. Appreciate all the help here and hopefully we can get things merged in pretty soon. Thanks Mika. |
|
@Ipstenu First off, thank you for the mention, as well as all you do for the WP community. I haven't gotten a chance to check anything here, so please excuse me if I'm wrong, but I think the args order on the cmb2_attached_posts_title_filter should have $post_id and $post_title reversed. As is, I think it'll show the $post_id if a callback function via add_filter() isn't in play. |
|
I'm curious, have you had a chance to check out this WIP for bringing this lib into CMB2 Core? CMB2/CMB2#1056 |
|
@jtsternberg Yes, but seeing as it was untouched for 5+ years, I assumed it was an abandoned idea. @njeffers Since I use it for all posts (to flag the status) I didn't notice :D Flipped it. Weirdly that way makes my check run multiple times, but I fixed my own code. |
|
Discussing internally about merging this one in for the time being. I've looked over everything and all looks good to me. Not managing to find any compatibility issues, but I am probably not using as extensively as you are, to create logged items. |
|
TBH, I was recently wrestling with some issues on the search and that led to what is a WAY more significant divergence.
I may be the only use case where post titles can be 2-characters though! |
This pull is basically bringing a LOT of the existing pulls up to modern speed, slapping it around with PHPCS and formatting, and adding in things I needed if I didn't want to hardcode in everything.
It runs live on lezwatchtv.com and is what powers our connections of characters to actors/shows.
Overview
cmb2_attached_posts_objectsfilter (from add filter to give us more control over get_all_objects() #58 - props @njeffers )New Filters
cmb2_attached_posts_title_filter- allows the display title of the post to be alteredexample:
cmb2_attached_posts_status_filter- changes the post types allowed.example:
cmb2_attached_posts_per_page_filter- changes how many pages to search (important to me as we have a couple thousand ;)example: