Created
December 29, 2022 01:25
-
-
Save pickplugins/cc6709a6fd09f3574dc79af172531cd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { applyFilters, doAction, addFilter } = wp.hooks; | |
let some_option = applyFilters('some-option', [{ label: 'Some Option' }]); | |
addFilter('some-option', 'post-grid/post-grid/queryPrams', function (options) { | |
//console.log(options); | |
// Add another options object to the array. | |
//options.push({ label: 'Another Option' }); | |
return options; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment