Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Some jQuery scripts and styles are loaded from the external Google API (ajax.googleapis.com/ajax/libs/jqueryui/####). This hook allows this URL to be changed. Files loaded from this URL includes:
- The jQuery style selected in the form styling settings
- The jQuery script or datepicker localization
Usage
add_filter( 'frm_jquery_ui_base_url', 'change_google_url' );
Parameters
None
Examples
Use a custom URL
add_filter( 'frm_jquery_ui_base_url', 'change_google_url' );
function change_google_url( $url ) {
return 'http://example.com/';
}