This file contains 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
DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock | |
put this in .evn file |
This file contains 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
$endpoint = 'api.example.com'; | |
$body = [ | |
'name' => 'Pixelbart', | |
'email' => 'pixelbart@example.com', | |
]; | |
$body = wp_json_encode( $body ); | |
$options = [ |
This file contains 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
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} -d [OR] | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteRule ^ ^$1 [N] |
This file contains 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
;(function ($) { | |
"use strict"; | |
jQuery(document).ready(function($) { | |
/*---------------------------------- | |
magnific popup activation | |
----------------------------------*/ | |
$('.image-popup').magnificPopup({ | |
type: 'image' |
This file contains 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( | |
//////Author Parameters - Show posts associated with certain author. |
This file contains 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
$this->add_control( 'testimonial_items', [ | |
'label' => esc_html__( 'Testimonial Item', 'appside-master' ), | |
'type' => Controls_Manager::REPEATER, | |
'default' => [ | |
[ | |
'designation' => esc_html__( 'Technician', 'appside-master' ), | |
], | |
], | |
'fields' => [ |
This file contains 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
add_filter( 'post_type_link', 'my_post_type_link', 10, 3); | |
function my_post_type_link($permalink, $post, $leavename) { | |
if ($post->post_type == 'my-post-type') { | |
$meta = get_post_meta($post->ID, '_my-post-meta', true); | |
if (isset($meta) && !empty($meta)) | |
$permalink = home_url( "my-friendly-url/" . $meta . "/" . $post->post_name . "/"); | |
} | |
return $permalink; |
This file contains 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
add_filter('elementor/icons_manager/native',array($this,'add_custom_icon_to_elementor_icons')); | |
public function add_custom_icon_to_elementor_icons($icons){ | |
$icons['la-line'] = [ | |
'name' => 'la-line', | |
'label' => __( 'Line Awesome - Accessibility', 'elementor' ), | |
'url' => XGENIOUS_MASTER_CSS .'/line-awesome.min.css', // icon css file | |
'enqueue' => [XGENIOUS_MASTER_CSS .'/line-awesome.min.css'], // icon css file | |
'prefix' => 'la-', prefix ( like fas-fa ) |
This file contains 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
It is because of Flare error reporting service enabled in debug mode | |
There is a workaround for this. | |
Publish flare config file | |
php artisan vendor:publish --tag=flare-config | |
and in config/flare.php | |
Set |
This file contains 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 | |
$big = 999999999; | |
$pagination_args = array( | |
'base' => str_replace('%_%', 1 == $paged ? '' : "?page=%#%", "?page=%#%"), | |
'format' => '?page=%#%', | |
'total' => $all_downloads->max_num_pages, | |
'current' => max( 1, $paged ), | |
'show_all' => false, | |
'prev_text' => '<i class="fa fa-angle-double-left"></i>', | |
'next_text' => '<i class="fa fa-angle-double-right"></i>', |