WIP integration for com-form

This commit is contained in:
2026-03-16 13:14:45 +01:00
parent 89b7b5e2cb
commit 4f75604fa0
8 changed files with 197 additions and 102 deletions

View File

@@ -117,11 +117,11 @@ class Partnerexpo_Core_Loader {
public function run() {
foreach ( $this->filters as $hook ) {
add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
add_filter( $hook['hook'], [ $hook['component'], $hook['callback'] ], $hook['priority'], $hook['accepted_args'] );
}
foreach ( $this->actions as $hook ) {
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
add_action( $hook['hook'], [ $hook['component'], $hook['callback'] ], $hook['priority'], $hook['accepted_args'] );
}
}