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 | |
add_filter('sp_cdm/mail/headers','my_custom_headers', 20,5); | |
function my_custom_headers($headers,$from,$to,$subject,$message){ | |
$headers[] = "From: Test <example@example.com>\r\n"; | |
return $headers; |
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 | |
add_filter('sp_cdm/mail/admin_email','cdm_admin_email', 20); | |
function cdm_admin_email($email){ | |
$email = 'noreply@example.com'; | |
return $email; | |
} |
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 funeralpress_custom_styles() { | |
wp_dequeue_style( 'wpfh-style' ); | |
wp_dequeue_style( 'wpfh-cem-style' ); | |
wp_enqueue_style( 'wpfh-style-custom-styles', get_stylesheet_directory_uri().'funeralpress.css', array('wpfh-style','wpfh-cem-style') ); | |
} | |
add_action( 'wp_enqueue_scripts', 'funeralpress_custom_styles' ); |
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
add_action('init','wp_limit_post_by_ip'); | |
function wp_limit_post_by_ip(){ | |
global $post; | |
#posts this is required, comma seperate | |
$post_ids = array(12); | |
#array of ips comma seperate | |
$allowed_ips = array('127.0.0.1'); | |
if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { |
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
[posts] => Array | |
( | |
[0] => WP_Post Object | |
( | |
[ID] => 8299 | |
[post_author] => 969 | |
[post_date] => 2017-07-05 11:00:26 | |
[post_date_gmt] => 2017-07-05 01:00:26 | |
[post_content] => 100% Australian Wool seat cover - suits national Highback seats. |
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 | |
global $obit_vars,$wpfh_user_obits; | |
extract($obit_vars); | |
?> | |
<div style="margin:20px 0px;background-color:#E8FEDA;padding:15px"> | |
<h1>You can override templates in your theme folder! This is a custom template!</h1> | |
<p>Overriding templates can be a great upsell tool, you can design specific layouts colors and add your own html to a custom template. Another great feature here is to let the deceased family choose from a bunch of different color/layouts you created! Check out the below Bob Marley themed template!</p> | |
</div> | |
<style type="text/css"> |
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
add_action('spcdm/files/responsive/before', 'custom_cdm_add_file_id'); | |
function custom_cdm_add_file_id($file_id){ | |
echo '#'.$file_id.' '; | |
} |
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
add_action('sp_cdm_after_file_upload','custom_cdm_after_file_upload',10,2); | |
function custom_cdm_after_file_upload($target_path,$uid){ | |
$pass = true; | |
#do some validation | |
if($somethignisntright){ | |
$pass = false; |
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
4.9791122715405 Average rating our of 383 Reviews | |
Array ( [0] => 5 [1] => 5 [2] => 5 [3] => 5 [4] => 5 [5] => 5 [6] => 5 [7] => 5 [8] => 5 [9] => 5 [10] => 5 [11] => 5 [12] => 5 [13] => 5 [14] => 5 [15] => 5 [16] => 5 [17] => 5 [18] => 5 [19] => 5 [20] => 5 [21] => 5 [22] => 5 [23] => 5 [24] => 5 [25] => 5 [26] => 5 [27] => 5 [28] => 5 [29] => 5 [30] => 5 [31] => 5 [32] => 5 [33] => 5 [34] => 5 [35] => 5 [36] => 5 [37] => 5 [38] => 5 [39] => 5 [40] => 5 [41] => 5 [42] => 5 [43] => 5 [44] => 5 [45] => 5 [46] => 5 [47] => 5 [48] => 5 [49] => 5 [50] => 5 [51] => 5 [52] => 5 [53] => 5 [54] => 5 [55] => 5 [56] => 5 [57] => 5 [58] => 5 [59] => 5 [60] => 5 [61] => 5 [62] => 5 [63] => 5 [64] => 5 [65] => 5 [66] => 5 [67] => 5 [68] => 5 [69] => 5 [70] => 5 [71] => 5 [72] => 5 [73] => 5 [74] => 5 [75] => 5 [76] => 5 [77] => 5 [78] => 5 [79] => 5 [80] => 5 [81] => 5 [82] => 5 [83] => 5 [84] => 5 [85] => 5 [86] => 5 [87] => 5 [88] => 5 [89] => 5 [90] => 5 [91] => 5 [92] => 5 [93] => 5 [94] => 5 [95] => 5 [96] => 5 [97] = |
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 | |
echo '<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>'; | |
$excerpt = trim(get_the_excerpt()); | |
if(!empty($excerpt)) | |
{ | |
the_excerpt(); | |
} | |
else | |
{ | |