Which action is triggered when a theme was modified?

Anytime changes are saved in the Customizer, there is a customize_save_after hook. For theme updates, you can use the upgrader_process_complete hook – you pass it various arguments including ‘type’ => ‘theme’. I don’t think there are any WordPress-specific hooks for when files of a child theme are modified. This typically happens via FTP, rather than … Read more

How to find hooks as per Just-In-Time approach?

Take a look at Mike’s answer to a similar question more specifically the plugin he posted there can be used to create a list of all action hooks and filters that were called to generate that page in order of execution. Hope this helps

How to access function from outside of a class within this class in WP plugin?

Create a static getter for your class instance: class DD_Awesome_Plugin { /** * Plugin main instance. * * @type object */ protected static $instance = NULL; /** * Access plugin instance. You can create further instances by calling * the constructor directly. * * @wp-hook wp_loaded * @return object T5_Spam_Block */ public static function get_instance() … Read more