/home/vianto5/cititower.mx/wp-content/plugins/wpml-wpforms/classes/Hooks/WpForms
NameSizeModeActions
AteFieldAdjuster.php63660644editdlrm
AteFieldReorder.php26880644editdlrm
AteLayoutHooks.php23770644editdlrm
ConversationalForms.php4020644editdlrm
DynamicChoices.php4360644editdlrm
EntryEdit.php16880644editdlrm
EntryPreviewField.php29390644editdlrm
Factory.php6070644editdlrm
FormPages.php16640644editdlrm
Import.php9080644editdlrm
Notifications.php95540644editdlrm
Package.php14450644editdlrm
Strings.php59040644editdlrm
SubLabels.php19830644editdlrm
TranslateEverythingHooks.php6300644editdlrm
Edit: /home/vianto5/cititower.mx/wp-content/plugins/wpml-wpforms/classes/Hooks/WpForms/Package.php (1445B)
kind_slug = $kind_slug; } /** Adds hooks. */ public function addHooks() { add_filter( "wpml_forms_{$this->kind_slug}_package", array( $this, 'applyFilter' ), 10, 2 ); add_action( 'wpforms_delete_form', [ $this, 'deletePackage' ] ); } /** * Applies filter to translation package properties. * * @param array $package Translation package configuration. * @param int $formId Form ID. * * @return array */ public function applyFilter( $package, $formId ) { $package['title'] = get_the_title( $formId ); $package['edit_link'] = esc_url( add_query_arg( array( 'page' => 'wpforms-builder', 'view' => 'fields', 'form_id' => $formId, ), admin_url( 'admin.php' ) ) ); $package['view_link'] = esc_url( add_query_arg( array( 'wpforms_form_preview' => $formId ), home_url() ) ); return $package; } /** * Delete the package and strings bound to the form. * * @param array $ids Post IDs. * * @return void */ public function deletePackage( $ids ) { foreach ( $ids as $id ) { do_action( 'wpml_delete_package', $id, $this->kind_slug ); } } }