Change the FILEMANAGERURL
define(‘FILEMANAGERURL’, ‘http://full-install-url-of-modernpos/storage/products’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
define(‘FILEMANAGERURL’, ‘http://full-install-url-of-modernpos/storage/products’);Continue reading
Your Name: Your Email: Meeting Date:Continue reading
add_filter( ‘gform_us_states’, ‘us_states’ ); function us_states( $states ) { $new_states = array(); foreach ( $states as $state ) { $new_states[ GF_Fields::get( ‘address’ )->get_us_state_code( $state ) ] = $state; } return $new_states; }Continue reading
/** * Create User Smart Tags from the WordPress profile. * * @link https://wpforms.com/developers/how-to-create-more-user-smart-tags/ */ function wpf_dev_register_user_profile_smart_tags ( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘wp_nickname’ ] = ‘WP Profile Nickname’; $tags[ ‘wp_username’…Continue reading
/** * Ensures the “Jump to Recipe” button is added above the featured image. */ add_action( ‘init’, function(){ if ( method_exists( ‘Tasty_RecipesShortcodes’, ‘filter_the_content_late’ ) ) { remove_filter( ‘the_content’, array( ‘Tasty_RecipesShortcodes’, ‘filter_the_content_late’ ), 100 ); add_action( ‘genesis_before_entry_content’, function() { echo Tasty_RecipesShortcodes::filter_the_content_late(…Continue reading
function mepr_fallback_failed_txn( $txn ) { MeprGroupsCtrl::create_fallback( $txn ); } add_action( ‘mepr-txn-status-failed’, ‘mepr_fallback_failed_txn’ );Continue reading
function mepr_delete_expired_txns() { $subscriptions = MeprSubscription::get_all(); if( is_array( $subscriptions ) && !empty( $subscriptions ) ) { foreach( $subscriptions as $subscription ) { $subscription = new MeprSubscription( $subscription->id ); if( $subscription->is_cancelled() && $subscription->is_expired() ) { $subscription->destroy(); } } } } add_action(…Continue reading
google20ec315e3dcb494d.htmlContinue reading
/* * This will work only for Charitable Recurring Donations 1.4.0.4+ * This accepts the HTML of the text box and with a little fancy replacing, allow you to add attributes. */ add_filter( ‘charitable_recurring_custom_amount_input’, ‘test_charitable_recurring_custom_amount_input’, 10, 4 ); function test_charitable_recurring_custom_amount_input(…Continue reading
/** * Change the payment field value based on user role and early-bird date. * * @param array $properties The field properties. * @param array $field The field settings. * @param array $form_data The form data. * * @return array…Continue reading