if (my_framework ('opt-switcher-1')) { function devfg_funcname() { } add_action( '..........', 'devfg_funcname' ); }