File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,19 +190,6 @@ You can use the xclass attribute inside the shortcode to add your own extra clas
190190[libre-form id="1" xclass="extra"]
191191```
192192
193- ## Using the shortcode outside post content
194-
195- By default, scripts are only loaded when the shortcode is within the content.
196- If you use shortcodes outside the content, ex. custom fields or by ` do_shortcode ` , you need to manually enqueue the scripts for the submit to work.
197-
198- ``` php
199- wp_enqueue_script('wplf-form-js');
200- wp_localize_script( 'wplf-form-js', 'ajax_object', array(
201- 'ajax_url' => admin_url( 'admin-ajax.php' ),
202- 'ajax_credentials' => apply_filters('wplf_frontend_script_credentials', 'same-origin')
203- ) );
204- ```
205-
206193## Contributing
207194
208195Please make sure your code conforms to the code style used in the rest of the plugin.
You can’t perform that action at this time.
0 commit comments