Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Last active December 22, 2015 05:39
Show Gist options
  • Save dbernar1/6425549 to your computer and use it in GitHub Desktop.
Save dbernar1/6425549 to your computer and use it in GitHub Desktop.
Naming function parameters. Also, code is text.
<?php
wp_enqueue_script( $module_slug . '-js', dirname(__FILE__) . '/js/' . $module_slug . '.js', array( 'jquery' ), self::version, true );
wp_enqueue_script(
$script_name = $module_slug . '-js',
$location = dirname(__FILE__) . '/js/' . $module_slug . '.js',
$load_after = array( 'jquery' ),
$version_number = self::version,
$load_in_footer = true
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment