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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /LocalSetupFolder/ | |
#link will be localhost/LocalSetupFolder/wp-admin | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /LocalSetupFolder/index.php [L] | |
</IfModule> |
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
DB_USER=root | |
DB_PASS= | |
project_name=amer1 | |
project_host=localhost | |
db_host=localhost | |
wp_user= | |
wp_pass= | |
wp_email= | |
wp_title=$project_name |
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
Fatal error: Uncaught TypeError: Argument 1 passed to WPML_Media_Post_Images_Translation::translate_images_in_post_content() must be an instance of WP_Post, null given, called in /www/htdocs/w0184db4/helmut-kostner.it/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php on line 107 and defined in /www/htdocs/w0184db4/helmut-kostner.it/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php:130 Stack trace: #0 /www/htdocs/w0184db4/helmut-kostner.it/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php(107): WPML_Media_Post_Images_Translation->translate_images_in_post_content(NULL, Object(WPML_Post_Element)) #1 /www/htdocs/w0184db4/helmut-kostner.it/wp-includes/class-wp-hook.php(288): WPML_Media_Post_Images_Translation->translate_images(5) #2 /www/htdocs/w0184db4/helmut-kostner.it/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters |
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
$data = array("name" => "Hagrid", "age" => "36"); | |
$data_string = json_encode($data); | |
$ch = curl_init('http://api.local/rest/users'); | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array( | |
'Content-Type: application/json', |
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
array( | |
"+1"=>"+1", | |
"+7"=>"+7", | |
"+20"=>"+20", | |
"+27"=>"+27", | |
"+30"=>"+30", | |
"+31"=>"+31", | |
"+32"=>"+32", | |
"+33"=>"+33", | |
"+34"=>"+34", |
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 | |
/* Add Image Upload to Series Taxonomy */ | |
// Add Upload fields to "Add New Taxonomy" form | |
function add_series_image_field() { | |
// this will add the custom meta field to the add new term page | |
?> | |
<div class="form-field"> | |
<label for="series_image"><?php _e( 'Series Image:', 'journey' ); ?></label> |
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
/*POST THUMBNAIL OR FILE UPLOADING FROM THE FRONT END*/ | |
function textDomain_thumbnail_uploading_function( $file, $post_id , $set_as_featured = false ) { | |
require( ABSPATH.'/wp-load.php' ); | |
if ( !function_exists('wp_handle_upload') ) { | |
require_once(ABSPATH . 'wp-admin/includes/file.php'); | |
} | |
$upload = wp_upload_bits( $file['name'], null, file_get_contents( $file['tmp_name'] ) ); | |
$wp_filetype = wp_check_filetype( basename( $upload['file'] ), null ); | |
$wp_upload_dir = wp_upload_dir(); | |
$attachment = array( |
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
wp.blocks.registerBlockType('guten/guten-box',{ | |
title: 'my cool Border box', | |
icon: 'smiley', | |
category: 'common', | |
attributes: { | |
content:{type: 'string'}, | |
color: {type: 'string'} | |
}, | |
edit: function( props ){ |
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
jQuery('.galleryblock>a').each((ind , value) => { | |
console.log(jQuery(value).prop('href')); | |
var link = document.createElement('a'); | |
link.href = jQuery(value).prop('href'); | |
link.download = link.href.substring(link.href.lastIndexOf('/')+1);; | |
document.body.appendChild(link); | |
link.click(); | |
document.body.removeChild(link); | |
}); |
OlderNewer