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('spcdm/premium/select_user/query', function($users){ | |
$users = get_users( array( | |
'meta_key' => 'first_name', | |
'orderby' => 'meta_value', | |
'order' => 'ASC' | |
) ); |
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 | |
/** | |
Plugin Name: WP Sitemap Page | |
Plugin URI: http://tonyarchambeau.com/ | |
Description: Add a sitemap on any page/post using the simple shortcode [wp_sitemap_page] | |
Version: 1.99.2 | |
Author: Tony Archambeau | |
Author URI: http://tonyarchambeau.com/ | |
Text Domain: wp-sitemap-page | |
Domain Path: /languages |
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/admin/fileview/dropdown', function($dropdown){ | |
$arrParts = explode("</select>", $dropdown); | |
foreach($arrParts as &$part){ | |
if($selPos = strpos($part, "<select")){ | |
$part = substr($part, 0, $selPos); | |
} | |
} |
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('spcdm/premium/select_user/name', '_custom_cdm_dropdown_name', 10,2); | |
function _custom_cdm_dropdown_name($name,$user){ | |
return $user->user_nicename; | |
} |
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 the filter | |
add_filter('sp_is_used', function($used){ | |
global $post; | |
#add your condition, in this instance we are checking to see if the page id 80 | |
if($post->ID == 80){ | |
$used = true; | |
} |
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 | |
/* | |
$target_path= full path of uploaded file (not yet inserted into db) | |
$uid = the ID of the user uploading the file | |
*/ | |
add_action('sp_cdm_after_file_upload','my_file_insert',10,3); | |
function my_file_insert($target_path,$uid){ |
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 | |
/* | |
$a = db insert array | |
$file_id = the ID of the file | |
$post = the form post object | |
*/ | |
add_action('sp_cdm_after_file_insert','my_file_insert',10,3); |
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 funeralpress_custom_styles() { | |
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
<script>jQuery(document).ready(function($) { | |
$("img[title]").each(function() { $(this).removeAttr("title"); }); | |
});</script> | |
<script type="text/javascript"> | |
jQuery(document).ready( function($) { | |
$(".et_pb_contact_captcha_question").prepend("<span> Please prove your humanity </span>" ); | |
}); | |
</script> |
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
<title><?php wp_title( '|', true, 'right' ); ?></title> |
NewerOlder