First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| # Intellij | |
| .idea/ | |
| *.iml | |
| *.iws | |
| .idea/*.?ml | |
| # Mac | |
| .DS_Store | |
| # Prerequisites |
| { | |
| "livres": [ | |
| { | |
| "titre": "Les misérables", | |
| "auteur": "Victor Hugo", | |
| "page": 890, | |
| "enstock":true, | |
| "id": 1 | |
| }, | |
| { |
| .ico { | |
| speak: none; | |
| font-style: normal; | |
| font-weight: normal; | |
| font-variant: normal; | |
| text-transform: none; | |
| line-height: 1; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } |
| # Keypad | |
| # 0 . Enter | |
| bindkey -s "^[Op" "0" | |
| bindkey -s "^[On" "." | |
| bindkey -s "^[OM" "^M" | |
| # 1 2 3 | |
| bindkey -s "^[Oq" "1" | |
| bindkey -s "^[Or" "2" | |
| bindkey -s "^[Os" "3" | |
| # 4 5 6 |
| <?php | |
| function insertFootNote($content) { | |
| if(!is_feed() && !is_home()) { | |
| $content.= "<div class='subscribe'>"; | |
| $content.= "<h4>Enjoyed this article?</h4>"; | |
| $content.= "<p>Subscribe to our <a href='http://feeds2.feedburner.com/WpRecipes'>RSS feed</a> and never miss a recipe!</p>"; | |
| $content.= "</div>"; | |
| } | |
| return $content; | |
| } |
| <?php | |
| /** | |
| * Usage: | |
| * Paste a gist link into a blog post or page and it will be embedded eg: | |
| * https://gist.github.com/diije/5805069 | |
| * | |
| * If a gist has multiple files you can select one using a url in the following format: | |
| * https://gist.github.com/diije/5805069?file=embed-gist.php | |
| */ |
| <?php | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| class WordPress_Plugin_Template_Settings { | |
| private $dir; | |
| private $file; | |
| private $assets_dir; | |
| private $assets_url; | |
| private $settings_base; |
| <?php | |
| global $wp_query; | |
| $postid = $wp_query->post->ID; | |
| echo get_post_meta($postid, 'Your-Custom-Field', true); | |
| wp_reset_query(); | |
| ?> |