wp plugin install all-in-one-wp-migration --activate
You must reload the page once before continuing
| <!-- DNS preconnect --> | |
| <meta http-equiv="x-dns-prefetch-control" content="on"> | |
| <link rel="preconnect" href="//ajax.googleapis.com"> | |
| <link rel="dns-prefetch" href="https://fonts.gstatic.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> | |
| <link rel="dns-prefetch" href="https://use.fontawesome.com"> | |
| <link rel="preconnect" href="https://use.fontawesome.com" crossorigin> | |
| <link rel="preconnect" href="//cdnjs.cloudflare.com"> | |
| <link rel="preconnect" href="//www.googletagmanager.com"> | |
| <link rel="preconnect" href="//www.google-analytics.com"> |
| // Remove Google Fonts from Oxygen | |
| remove_action('wp_head', 'add_web_font',0); |
| // Changes Gravity Forms Ajax Spinner (next, back, submit) to a transparent image | |
| // this allows you to target the css and create a pure css spinner like the one used below in the style.css file of this gist. | |
| add_filter( 'gform_ajax_spinner_url', 'spinner_url', 10, 2 ); | |
| function spinner_url( $image_src, $form ) { | |
| return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // relative to you theme images folder | |
| } |
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: Matteo | |
| * Date: 04/07/2018 | |
| * Time: 12:52 | |
| */ | |
| /** | |
| * Class ACFToArray |
| /* Add Google Tag Manager javascript code as close to | |
| the opening <head> tag as possible | |
| =====================================================*/ | |
| function add_gtm_head(){ | |
| ?> | |
| <!-- Google Tag Manager --> | |
| <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
| new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
| j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
| <?php | |
| /* WordPress debug mode for developers. */ | |
| define( 'WP_DEBUG', true ); | |
| // Enable Debug logging to the /wp-content/debug.log file | |
| define( 'WP_DEBUG_LOG', true ); | |
| // Disable display of errors and warnings | |
| define( 'WP_DEBUG_DISPLAY', false ); |
| <?php | |
| /** | |
| * Search across all network blogs with elasticpress | |
| * | |
| * @param $scope string Search scope | |
| * | |
| * @return string | |
| */ | |
| function motivast_ep_search_scope( $scope ) { |
| <?php | |
| /** | |
| * Estimates the reading time for a given piece of $content. | |
| * | |
| * @param string $content Content to calculate read time for. | |
| * @param int $wpm Estimated words per minute of reader. | |
| * | |
| * @returns int $time Esimated reading time. | |
| */ | |
| function prefix_estimated_reading_time( $content = '', $wpm = 300 ) { |
| <?php | |
| require_once(ABSPATH . 'wp-admin/includes/media.php'); | |
| require_once(ABSPATH . 'wp-admin/includes/file.php'); | |
| require_once(ABSPATH . 'wp-admin/includes/image.php'); | |
| $url = 'http://wordpress.org/about/images/logos/wordpress-logo-stacked-rgb.png'; | |
| $title = "Anything you want"; | |
| $postId = 1; |