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
<?php | |
// Code used by plugin to enqueue styles | |
wp_enqueue_style('wpProQuiz_front_style', plugins_url('css/wpProQuiz_front'.(WPPROQUIZ_DEV ? '' : '.min').'.css', WPPROQUIZ_FILE), array(), WPPROQUIZ_VERSION ); | |
wp_enqueue_style( 'sfwd_front_css', plugins_url( 'assets/css/front.css', dirname( __FILE__ ) ) ); | |
wp_enqueue_style( 'sfwd_template_css', get_stylesheet_directory_uri().'/learndash/learndash_template_style.css' ); | |
// My attempt at dequeuing styles | |
add_action( 'wp_print_styles', 'vms_dequeue_styles', 100 ); |
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
$zip = '00001'; // $zip can be populated by form submission | |
$pricing = $array( | |
// zip => price associated with that zip | |
'00001' => 10, | |
'00002' => 15, | |
'00003' => 20 | |
); | |
// check if zip exists within array, and return the matching price |
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
<?php | |
// Remove unnecessary menu items from admin menu | |
function remove_menus () { | |
if( is_admin() ) { | |
global $menu; | |
$restricted = array( | |
// __('Posts'), | |
// __('Comments') | |
); |
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
<?php | |
/* Template Name: Template Name */ | |
?> |
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
<?php | |
$loop = new WP_Query( array( | |
'post_type' => 'Property', | |
'posts_per_page' => -1 | |
) | |
); | |
?> | |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?> |
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
<div class="grid"> | |
<!-- | |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
--><div class="grid__item"> | |
<!-- do stuff --> |
NewerOlder