We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is interesting to use constant in URL, this allows me to change or custom by the theme
E.g.:
public function __construct() { if ( ! defined( 'PW_CMB2_Field_Google_Maps_URL' ) ) { define( 'PW_CMB2_Field_Google_Maps_URL', plugin_dir_url( __FILE__ ) ); } add_filter( 'cmb2_render_pw_map', array( $this, 'render_pw_map' ), 10, 5 ); add_filter( 'cmb2_sanitize_pw_map', array( $this, 'sanitize_pw_map' ), 10, 4 ); }
public function setup_admin_scripts() { wp_register_script( 'pw-google-maps-api', '//maps.googleapis.com/maps/api/js?sensor=false&libraries=places', null, null ); wp_enqueue_script( 'pw-google-maps', PW_CMB2_Field_Google_Maps_URL . 'js/script.js', array( 'pw-google-maps-api' ), self::VERSION ); wp_enqueue_style( 'pw-google-maps', PW_CMB2_Field_Google_Maps_URL . 'css/style.css', array(), self::VERSION ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It is interesting to use constant in URL, this allows me to change or custom by the theme
E.g.:
The text was updated successfully, but these errors were encountered: