Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions classes/helpers/FrmXMLHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -732,20 +732,6 @@ private static function maybe_update_get_values_form_setting( $imported, &$f ) {
}
}

/**
* If field settings have been migrated, update the values during import.
*
* @since 4.0
*
* @param array $f
*
* @return void
*/
private static function run_field_migrations( &$f ) {
self::migrate_placeholders( $f );
$f = apply_filters( 'frm_import_xml_field', $f );
}

/**
* @since 4.0
*
Expand Down
30 changes: 0 additions & 30 deletions classes/models/FrmFormAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -973,36 +973,6 @@ public static function action_conditions_met( $action, $entry ) {
return $stop;
}

/**
* Get the value from a specific field and entry
*
* @since 2.01.02
*
* @param object $entry
* @param int $field_id
*
* @return array|bool|mixed|string
*/
private static function get_value_from_entry( $entry, $field_id ) {
$observed_value = '';

if ( isset( $entry->metas[ $field_id ] ) ) {
$observed_value = $entry->metas[ $field_id ];
} elseif ( $entry->post_id && FrmAppHelper::pro_is_installed() ) {
$field = FrmField::getOne( $field_id );
$observed_value = FrmProEntryMetaHelper::get_post_or_meta_value(
$entry,
$field,
array(
'links' => false,
'truncate' => false,
)
);
}

return $observed_value;
}

/**
* @param string $class
*
Expand Down
13 changes: 0 additions & 13 deletions classes/models/FrmInstallPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,4 @@ public static function ajax_check_plugin_activation() {
wp_send_json_error();
}
}

/**
* Check if a plugin is installed.
*
* @since 6.16
*
* @param string $plugin_file
*
* @return bool
*/
private static function is_plugin_installed( $plugin_file ) {
return isset( get_plugins()[ $plugin_file ] );
}
}
Loading