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 | |
| $taxonomy = 'product_cat'; | |
| $orderby = 'name'; | |
| $show_count = 0; // 1 for yes, 0 for no | |
| $pad_counts = 0; // 1 for yes, 0 for no | |
| $hierarchical = 1; // 1 for yes, 0 for no | |
| $title = ''; | |
| $empty = 0; |
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
| <head> | |
| <!--Need gtag.js code and jquery already in page --> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
| <!-- Global site tag (gtag.js) - Google Analytics --> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1"></script> | |
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); |
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
| <script> | |
| var trackOutboundLink = function(url) { | |
| gtag('event', 'click', { | |
| 'event_category': 'outbound', | |
| 'event_label': url, | |
| 'transport_type': 'beacon' | |
| }); | |
| } | |
| function onclickCallback(e) { | |
| var e = window.e || e; |
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 | |
| /** | |
| * Sub Menu | |
| */ | |
| add_action( 'admin_menu', 'htpm_submenu' ); | |
| function htpm_submenu() { | |
| add_submenu_page( 'plugins.php', 'Plugin Manager', 'Plugin Manager', 'manage_options', 'htpm-options', 'htpm_options_page_html' ); | |
| } |
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
| // hook into wpcf7_before_send_mail | |
| add_action( 'wpcf7_before_send_mail', function($contact_form){ | |
| // create new instance of WPCF7_Submission class | |
| $submission = WPCF7_Submission::get_instance(); | |
| // email address you want to change | |
| $toEmail = 'someone@somewhere.com'; | |
| // set the email address to recipient |
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
| import React, { Component } from 'react' | |
| import './App.css'; | |
| import PostForm from './PostForm' | |
| class App extends Component{ | |
| render(){ | |
| return ( | |
| <div className="container"> | |
| <div className="col-md-10"> | |
| <PostForm /> |
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
| import React, { Component } from 'react' | |
| import './App.css'; | |
| import PostForm from './forms/PostForm'; | |
| class App extends Component{ | |
| render(){ | |
| return ( | |
| <div className="container"> | |
| <div className="col-md-10"> | |
| <PostForm /> |
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
| import React, { Component } from 'react' | |
| import './App.css'; | |
| import Books from './Books/Books'; | |
| import axios from 'axios' | |
| class App extends Component{ | |
| state = { | |
| posts: [] | |
| } |
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 | |
| $response = wp_remote_get( 'https://ma.tt/wp-json/wp/v2/posts/49968' ); | |
| $data = json_decode( $response['body'] ); | |
| $content = $data->content->rendered; | |
| echo $content; | |
| ?> |
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
| // constructor | |
| // render | |
| // call all lifecycle methods | |
| // componentDidMount | |
| // componentDidUpdate | |
| // componentWillUnmount |