/** * @link https://library.wpcode.com/snippet/j57zmp2g/ */ add_filter( // Update `123` to match your Form ID. // Update `2`to match the custom field ID. ‘simpay_form_123_field_2_default_value’, /** * @var string $default * @return string */ function( $default ) { // Set the default…Continue reading
add_filter( ‘admin_email_check_interval’, ‘__return_false’ );Continue reading
add_action( ‘init’, function() { remove_action( ‘wp_scheduled_delete’, ‘wp_scheduled_delete’ ); } );Continue reading
add_action( ‘wp_enqueue_scripts’, function() { wp_dequeue_style( ‘wp-block-library’ ); wp_dequeue_style( ‘wp-block-library-theme’ ); }, 110 );Continue reading
add_action( ‘admin_init’, function() { if ( ! current_user_can( ‘administrator’ ) ) { wp_redirect( home_url() ); exit; } } );Continue reading
// Post Date Function function post_date(){ // If modified date if ( get_the_date() !== get_the_modified_date() ) { $dateTime = get_the_modified_date( ‘c’ ); $itemropType = ‘dateModified’; $date = ‘‘. get_the_modified_date() .’‘; } else { // If published date $dateTime = get_the_date(…Continue reading
/** * @link https://library.wpcode.com/snippet/e500y359/ * * @param string $separator Decimal separator. * @return string */ function simpay_custom_decimal_separator( $separator ) { return ‘,’; } add_filter( ‘simpay_decimal_separator’, ‘simpay_custom_decimal_separator’ );Continue reading
/** * @link https://library.wpcode.com/snippet/j57zqp2g/ */ add_filter( ‘simpay_decimal_places’, /** * @param int $places Number of decimal places. * @return int */ function( $places ) { return 0; } );Continue reading
/** * @link https://library.wpcode.com/snippet/rodjlwom/ */ add_filter( ‘simpay_custom_amount_field_type’, /** * @param string $input_type * @return string */ function ( $input_type ) { return ‘number’; } );Continue reading