Store Cognito base url solely in api.php
This commit is contained in:
@@ -142,6 +142,12 @@ if ( !class_exists( 'CognitoFormsPlugin' ) ) {
|
||||
$asset_file['version']
|
||||
);
|
||||
|
||||
wp_add_inline_script(
|
||||
'cognito-block-editor-js',
|
||||
'window.COGNITO_BASEURL = "' . CognitoAPI::$formsBase . '";',
|
||||
'before'
|
||||
);
|
||||
|
||||
// Register block editor styles for backend.
|
||||
wp_register_style(
|
||||
'cognito-block-editor-css', // Handle.
|
||||
|
Reference in New Issue
Block a user