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 | |
$id=47; // Id of your Page/Post/CustomPost type | |
$post = get_page($id); | |
$content = apply_filters('the_content', $post->post_content); | |
echo $content; | |
?> |
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 | |
// Note for %payment-code% | |
// CashonDeliver = 'cod' | |
// PayPal = 'paypal' | |
// Basic Payment = 'bacs' | |
// Cheque payment = 'cheque' | |
// Mijireh Gatway = 'mijireh_checkout' | |
// Note for %countrycode% | |
// India = 'IN' |
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 | |
//* Load Marmelad Google fonts | |
add_action( 'wp_enqueue_scripts', 'custom_load_google_fonts' ); | |
function custom_load_google_fonts() { | |
wp_enqueue_style( 'google-font', 'http://fonts.googleapis.com/css?family=Marmelad', array(), PARENT_THEME_VERSION ); | |
} | |
?> |
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 | |
function remove_submenus() { | |
if(!current_user_can('activate_plugins')) { | |
global $submenu; | |
unset($submenu['edit.php?post_type=your_custom_post-type'][10]); // Removes 'Add New'. | |
} | |
} | |
add_action('admin_menu', 'remove_submenus'); | |
function hide_that_stuff() { |
NewerOlder