biketrials riding techniques Rear-to-front wheel swap
This technique is the most useful in biketrials, and works even if the bike is not positioned horizontally or if you are in a rough terrain. At least the back wheel should be positioned on top of some edge, a short flat, or a down wedge (but not in a pot hole). A pure pedal hop can bring your rear wheel forward, exactly where your front wheel was (or even further). Or you can use a kick in your good pedal to boost a static hop.

In between the pure pedal hop and the pure static hop
Balancing, start folding for a jump impulsion like in a static hop.
1° From the folded position, shift your weight forwards in one impulsion, while pushing on your arms (for extra impulse). 2° Finish up your extension with a very brief pedal kick, while pulling on the handlebars to lift the bike like in the static hop. 3° Once in the air, pull the bike forwards in front of you, to land your rear wheel in front of you, or any target landing spot.
See the move in a video

More info?
This is not a pure pedal hop in the sense that, with the rear wheel in uneven terrain, if you tried to pull a classic pedal hop, the back wheel would not be able to roll smoothly like on a flat surface, and instead of rolling forwards, you would be sent over the bars (the rear wheel being stuck). By first lifting the bike in a static hop, you can then kick briefly in the pedals to boost the impulse forwards (without all your weight and the bike sticking the rear wheel to the ground, especially if the rear wheel is stuck on a slope).
video
With the front wheel lower.
With the front wheel lifted onto an edge, you have to use a lot more your body movement, first taking support with the arms for the static hop to throw your shoulders forward, then boosting the move with a pedal kick. If the front wheel is lower, you must do a quick push up to unlock the front wheel from its lower position and kick in the pedals when reaching the horizontal. video
With the front wheel lifted.

video
In real conditions
Totally variable
This combination of a pedal hop with a static hop can be applied to various degrees, up to the pure static hop (no pedal kick, and lifting the bike with the arms) or up to a pure pedal hop with all the impulsion given on the pedals (no push-up on the handlebars). It all depends of the initial position of the bike, and the grip you can expect from the rear wheel.
video
From a static position
If there is little grip or if the rear wheel is stuck in a hole, it's better to pull a static hop, but if there is a good grip or the rear tire is on a flat surface, you can pull a good pedal kick. As a rule of thumb, when the bike is rather horizontal and the rear wheel on a flat, then use more the pedal kick (because the distance is difficult to get just pulling with the arms), but if the bike is really vertical then you don't have much choice but only to pull a static hop.