This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disable support for comments and trackbacks in post types | |
function df_disable_comments_post_types_support() { | |
$post_types = get_post_types(); | |
foreach ($post_types as $post_type) { | |
if(post_type_supports($post_type, 'comments')) { | |
remove_post_type_support($post_type, 'comments'); | |
remove_post_type_support($post_type, 'trackbacks'); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
noFill(); | |
} | |
function draw() { | |
background(255); | |
var count = 0; | |
for (var x = 50; x <= width-50; x += 50) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
noFill(); | |
} | |
function draw() { | |
background(255); | |
for (var x = 50; x <= width-50; x += 50) { | |
for (var y = 50; y <= height-50; y += 50) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
noFill(); | |
} | |
function draw() { | |
background(255); | |
for (var x = 50; x <= width-50; x += 50) { | |
for (var y = 50; y <= height-50; y += 50) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
noFill(); | |
} | |
function draw() { | |
background(255); | |
for (var x = 50; x <= width-50; x += 50) { | |
for (var y = 50; y <= height-50; y += 50) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(600, 600); | |
} | |
function draw() { | |
background(255); | |
for (var i=25; i<width; i+=100) { | |
for (var j=25; j<height; j+=100) { | |
ellipse (i, j, 20, 20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(600, 600); | |
} | |
function draw() { | |
background(255); | |
noFill(); | |
for (var i=50; i<600; i+=100) { | |
ellipse(width/2, height/2, i, i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(600, 600); | |
} | |
function draw() { | |
background(100); | |
for (var i=0; i<width; i+=10) { | |
line(i, 0, i, height); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(600, 600); | |
} | |
function draw() { | |
background(200); | |
for (var i=0; i<width; i++) { | |
stroke(i/width * 255); | |
line(i, 0, i, height); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Disable Variable Product Price Range completely: | |
*/ | |
add_filter('woocommerce_variable_price_html','custom_from',10); | |
add_filter('woocommerce_grouped_price_html','custom_from',10); | |
add_filter('woocommerce_variable_sale_price_html','custom_from',10); | |
function custom_from($price){ | |
return false; | |
} |
NewerOlder