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 $wpw_fp_options; | |
$prefix = WPW_FP_META_PREFIX; | |
// get all custom post types | |
$post_types = get_post_types( array( 'public' => true ), 'objects' ); | |
$followtext = $wpw_fp_options['term_follow_buttons']['follow']; | |
$followingtext = $wpw_fp_options['term_follow_buttons']['following']; | |
$unfollowtext = $wpw_fp_options['term_follow_buttons']['unfollow']; |
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 $wpw_fp_options; | |
$prefix = WPW_FP_META_PREFIX; | |
// get all custom post types | |
$post_types = get_post_types( array( 'public' => true ), 'objects' ); | |
$followtext = $wpw_fp_options['follow_buttons']['follow']; | |
$followingtext = $wpw_fp_options['follow_buttons']['following']; | |
$unfollowtext = $wpw_fp_options['follow_buttons']['unfollow']; |
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 | |
register_activation_hook( __FILE__, 'edd_points_install' ); | |
function edd_points_install() { | |
global $wpdb, $edd_options; | |
$udpopt = false; | |
//check earning points conversion not set |
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 | |
if( class_exists( 'Easy_Digital_Downloads' ) ) { | |
$currency = edd_get_currency(); // get edd base currency | |
add_filter( 'edd_' . strtolower( $currency ) . '_currency_filter_before', 'edd_cur_change_before_format', 10, 3 ); | |
add_filter( 'edd_' . strtolower( $currency ) . '_currency_filter_after', 'edd_cur_change_after_format', 10, 3 ); | |
function edd_cur_change_before_format($formatted, $currency, $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 | |
global $post, $wp_query; | |
echo do_shortcode('[wpw_follow_term_me posttype="'.$post->post_type.'" taxonomy="category" termid="'.$wp_query->query_vars['cat'].'"][/wpw_follow_term_me]'); | |
?> |
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( 'edd_payu_payment_form_arguments', 'twentytwelve_edd_payu_payment_form_arguments' ); | |
function twentytwelve_edd_payu_payment_form_arguments( $payu_args ) { | |
$payu_args['service_provider'] = 'payu_paisa'; | |
return $payu_args; | |
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( 'sde_vendors_vendor_slug', 'change_vendor_url_slug' ); | |
function change_vendor_url_slug( $slug ) { | |
$slug = 'new_url'; | |
return $slug; | |
} | |
?> |
OlderNewer