pro ? 'WPForms\Pro\Admin\Pages\Addons' : 'WPForms\Lite\Admin\Pages\Addons', 'WPForms_Addons' ); /** * This alias is a safeguard to those developers who decided to use our internal class WPForms_Smart_Tags, * which we deleted. * * @since 1.6.7 */ class_alias( wpforms()->pro ? 'WPForms\Pro\SmartTags\SmartTags' : 'WPForms\SmartTags\SmartTags', 'WPForms_Smart_Tags' ); /** * Get notification state, whether it's opened or closed. * * @deprecated 1.4.8 * * @since 1.4.1 * * @param int $form_id Form ID. * @param int $notification_id Notification ID. * * @return string */ function wpforms_builder_notification_get_state( $form_id, $notification_id ) { _deprecated_function( __FUNCTION__, '1.4.8 of the WPForms plugin', 'wpforms_builder_settings_block_get_state()' ); return wpforms_builder_settings_block_get_state( $form_id, $notification_id, 'notification' ); } /** * Convert bytes to megabytes (or in some cases KB). * * @deprecated 1.6.2 * * @since 1.0.0 * * @param int $bytes Bytes to convert to a readable format. * * @return string */ function wpforms_size_to_megabytes( $bytes ) { _deprecated_function( __FUNCTION__, '1.6.2 of the WPForms plugin', 'size_format()' ); return size_format( $bytes ); }