add_action('init', 'framework_register_scripts');
function framework_register_scripts() {
wp_register_script('printcoupon', get_template_directory_uri() . '/js/printcoupon.js', array('jquery'), '1.0.0', true);
}
wp_enqueue_script( 'printcoupon' );
It should be noted that the results from wp_get_object_terms are not cached which will result in a db call everytime this function is called. For performance, functions like get_the_terms() (which the results of has been cached), should be used.
add_filter('image_send_to_editor', 'my_theme_remove_rel', 10, 2);
function my_theme_remove_rel($html, $id) {
if($id>0)
$html=str_replace('rel="attachment wp-att-'.$id.'"','',$html);
return $html;
}
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^zip-file/ #here your URI and '!' is required...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress