Passing a ‘function argument’ through the shortcode
-
Hello All
I created a shortcode snippet (like below), how do I pass an argument $list_name to the function when calling it via the shortcode.
[test_list_copy]
— code snippet—
add_shortcode( ‘test_list_copy’, function ($list_name) {
my code here
}Kind Regards Guy
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Passing a ‘function argument’ through the shortcode’ is closed to new replies.