lets say I have my main plugin file. mainpluginfile.php
I also have a function that is not yet included the file like,
function my_function_to_be_added(){
echo 'hello this is a test';
}
add_action('wp_head','my_function_to_be_added');
SO how can I go about including the file when a click on something let say a button that I have in the admin page.
so that when I activate the plugin, this function does not exist until when I click the button that's when it is added into the plugin.
Is this accomplishable?
thanks.
