Change to allow multiple calls to ramp_for_gutenberg_load_gutenberg()
Allows multiple function calls to ramp_for_gutenberg_load_gutenberg() and merges the criteria before saving to the database. Works by storing each set of criteria in a class variable, merging as they come in and then saves to the database during admin_init.
The last value for load that is passed into ramp_for_gutenberg_load_gutenberg() will be the one that's used. This means that while post_ids and post_types values will be merged, any call to ramp_for_gutenberg_load_gutenberg() using the load parameter will override anything set in post_ids or post_types.
33
Change to allow multiple calls to
ramp_for_gutenberg_load_gutenberg()
Allows multiple function calls to
ramp_for_gutenberg_load_gutenberg()
and merges the criteria before saving to the database. Works by storing each set of criteria in a class variable, merging as they come in and then saves to the database duringadmin_init
.The last value for
load
that is passed intoramp_for_gutenberg_load_gutenberg()
will be the one that's used. This means that whilepost_ids
andpost_types
values will be merged, any call toramp_for_gutenberg_load_gutenberg()
using theload
parameter will override anything set inpost_ids
orpost_types
.