کد PHP:
function myptest_script() { wp_enqueue_style('style', get_template_directory_uri() . '/css/style.css', array(), '1', 'all' ); wp_enqueue_style('reset', get_template_directory_uri() . '/css/reset.css', array(), '1', 'all' ); wp_enqueue_style('fancybox', get_template_directory_uri() . '/css/fancybox.css', array(), '1', 'all' );
wp_enqueue_script('custom', get_template_directory_uri().'/js/custom.js', array(), false ); wp_enqueue_script('respond', get_template_directory_uri().'/js/respond.min.js', array(), false ); }add_action( 'wp_enqueue_scripts', 'myptest_script' );
function myptest_scripts() { wp_register_script('custom', plugins_url('js/custom.js', __FILE__), array('jquery'), true);wp_enqueue_script('custom');
wp_register_script('jquery.adipoli.min', plugins_url('js/jquery.adipoli.min.js', __FILE__), array('jquery'), true);wp_enqueue_script('jquery.adipoli.min');
wp_register_script('jquery.easytabs.min', plugins_url('js/jquery.easytabs.min.js', __FILE__), array('jquery'), true);wp_enqueue_script('jquery.easytabs.min');
wp_register_script('jquery.fancybox-1.3.4.pack', plugins_url('js/jquery.fancybox-1.3.4.pack.js', __FILE__), array('jquery'), true);wp_enqueue_script('jquery.fancybox-1.3.4.pack');
wp_register_script('jquery.gmap.min', plugins_url('js/jquery.gmap.min.js', __FILE__), array('jquery'), true);wp_enqueue_script('jquery.gmap.min');
wp_register_script('jquery.isotope.min', plugins_url('js/jquery.isotope.min.js', __FILE__), array('jquery'), true);wp_enqueue_script('jquery.isotope.min');
wp_register_script('jquery.min', plugins_url('js/jquery.min.js', __FILE__), array('jquery'), true);wp_enqueue_script('jquery.min');
wp_register_script('respond.min', plugins_url('js/respond.min.js', __FILE__), array('jquery'), true);wp_enqueue_script('respond.min');
}add_action( 'wp_enqueue_scripts', 'myptest_scripts' );