Last active
March 13, 2018 15:53
-
-
Save anthonybudd/21650dae7daa4db7357f4526f6952e55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
WP_Route::get('flights/{flight}', 'singleFlight'); | |
// http://example.com/flights/1 | |
function singleFlight($flight){ | |
echo $flight; // 1 | |
// Your Code Here! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment