beapi / meta-for-taxonomies Goto Github PK
View Code? Open in Web Editor NEWA WordPress plugin for add metadata API for term/taxonomy
A WordPress plugin for add metadata API for term/taxonomy
Hi there.
Here what I spotted so far: update_termmeta_cache()
, add_term_meta()
, delete_term_meta()
, get_term_meta()
and update_term_meta()
.
But the worst part is that we also have non-matching function signatures: the plugin functions use $taxonomy
as first parameter, but WordPress doesn't.
update_termmeta_cache
uses a $meta_type
of 'term_taxo' when it calls update_meta_cache
. In update_meta_cache
, it appends '_meta' to the $meta_type
to generate the $cache_key
, loading everything into the 'term_taxo_meta' cache group.
The plugin has a number of calls to wp_cache_set
, wp_cache_get
, and wp_cache_delete
all using 'term_taxometa'. I noticed it by trying to use get_term_custom
and backtracking when it wasn't getting values I could see in the database it was saving.
Doesn't seem to affect retrieving single term meta values with get_term_meta
since that is using the core get_metadata
function that handles appending the correct '_meta' string to the $meta_type
.
Hello! I thought you would be interested in this curious issue. Along the course of my work, I found that there is a clash in the name of function add_term_meta
with All in One SEO Pack Pro while evaluating Taxonomy Thumbnail (which depends on this plugin optionally) and AIOSEOP Pro at the same time.
It appears that the function has yet to be used by AIOSEOP Pro for now, as I could not find any invocation of the function yet. Since the function has yet to be released in the free version, I think the most I can share offhand is the arguments list:
function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) { ... }
Implement purge cache of term metadata on follow hook : clean_term_cache
Quand on veut récupérer un terme à partir de sa valeur dans une taxonomie, la fonction get_term_id_from_meta ne renvoie pas la bonne valeur si la valeur recherchée est dans plusieurs termes.
Cela vient du fait que la fonction get_term_taxonomy_id_from_meta ne prend pas en compte la taxonomie.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.