Operant conditioning.
Indeed but what you are conditioning is dependent on the abilities of what you are conditioning. In order to achieve the reward, the pig quite clearly has to be able to distinguish the wooden pigs and the action clearly enough to carry out the rewarded reaction.