Skip to main content

get_hooks_javascript_code()

public static function get_hooks_javascript_code( $set_printed_prop=true )

Get the Javascript code from the gforms_hooks file and return it.

Since:

  • 2.5
  • 2.9.19 (Added the $set_printed_prop param.)

Source: common.php:6420

Parameters

NameTypeDefaultDescription
$set_printed_propbooltrueOptional. Indicates if GFFormDisplay::$hooks_js_printed should be set to true.

Returns

  • false | string