Skip to content

Instantly share code, notes, and snippets.

@hadamlenz
Created July 24, 2016 20:23
Show Gist options
  • Save hadamlenz/779ee5ac977bfffed9ea5f4c0afd950c to your computer and use it in GitHub Desktop.
Save hadamlenz/779ee5ac977bfffed9ea5f4c0afd950c to your computer and use it in GitHub Desktop.
<?php
$moreargs = ['one','two']
add_filter('filtername',function($args) use($moreargs){
//do stuff with more args
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment