Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter ignacioservicebox

    (@ignacioservicebox)

    The function in 287 and the line

    287 - $value = call_user_func_array( $the_['function'], $args );

    foreach ( $this->callbacks[ $priority ] as $the_ ) {
    				if ( ! $this->doing_action ) {
    					$args[0] = $value;
    				}
    
    				// Avoid the array_slice() if possible.
    				if ( 0 == $the_['accepted_args'] ) {
    					$value = call_user_func( $the_['function'] );
    				} elseif ( $the_['accepted_args'] >= $num_args ) {
    					$value = call_user_func_array( $the_['function'], $args );
    				} else {
    					$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
    				}
    			}

    the fuction in line 560

    public function render_discount_banner( $page, $action, $object ) {
    
    		if ( 'edit' === $action ) {
    			$banner_version_dismissed = get_option( 'wpcf7_redirect_dismiss_banner' );
    			$banner                   = wpcf7r_get_discount_banner();
    
    			if ( $banner ) {
    				update_option( 'wpcf7r_banner_version', $banner->version );
    
    				if ( ! $banner_version_dismissed && wpcf7r_get_banner_version() !== $banner_version_dismissed ) {
    					echo $banner->banner;
    				}
    			}
    		}
    	}
Viewing 1 replies (of 1 total)