plugin updates

This commit is contained in:
Tony Volpe
2024-11-20 22:40:39 -05:00
parent 0238f0c4ca
commit 3362947c6e
434 changed files with 13405 additions and 9202 deletions

View File

@@ -22,21 +22,22 @@ if ( ! GFCommon::current_user_can_any( array( 'gravityforms_edit_forms', 'gravit
die( esc_html__( "You don't have adequate permission to preview forms.", 'gravityforms' ) );
}
// Get form ID.
$form_id = absint( rgget( 'id' ) );
/**
* Fires when a Form Preview is loaded.
*
* The hook fires when a Form Preview is initialized and before it is rendered.
*
* @since 2.5
* @since 2.9 Added the $form_id parameter.
*/
do_action( 'gform_preview_init' );
do_action( 'gform_preview_init', $form_id );
// Load form display class.
require_once( GFCommon::get_base_path() . '/form_display.php' );
// Get form ID.
$form_id = absint( rgget( 'id' ) );
// Get form object.
$form = RGFormsModel::get_form_meta( $_GET['id'] );
$form_title = rgar( $form, 'title', __( 'Untitled Form', 'gravityforms' ) );
@@ -152,4 +153,4 @@ do_action( 'gform_preview_footer', $form_id );
?>
</body>
</html>
</html>