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 | |
//Részletek itt: https://wphu.org/tippek-trukkok/hogyan-jussunk-wordpress-adminba-hozzaferes-nelkul/ | |
require_once 'wp-blog-header.php'; | |
require_once 'wp-includes/registration.php'; | |
$newusername = 'hellowp2022'; | |
$newemail = 'website2022@hellowp.io'; |
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 | |
/** | |
* Plugin Name: Custom Shipping Estimate for WooCommerce | |
* Description: Adds a shipping estimate notice on WooCommerce product pages. | |
* Version: 1.0 | |
* Author: trueqap | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; |
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
-- | |
-- Table structure for table `wp_fc_campaign_emails` | |
-- | |
CREATE TABLE `wp_fc_campaign_emails` ( | |
`id` bigint(20) UNSIGNED NOT NULL, | |
`campaign_id` bigint(20) UNSIGNED DEFAULT NULL, | |
`email_type` varchar(50) COLLATE utf8mb4_unicode_520_ci DEFAULT 'campaign', | |
`subscriber_id` bigint(20) UNSIGNED DEFAULT NULL, | |
`email_subject_id` bigint(20) UNSIGNED DEFAULT NULL, |
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 | |
class BootstrapPagination { | |
public static function render() { | |
global $wp_query; | |
$current = max(1, absint(get_query_var('paged'))); | |
$pagination = paginate_links(array( | |
'base' => str_replace(PHP_INT_MAX, '%#%', esc_url(get_pagenum_link(PHP_INT_MAX))), | |
'format' => '?paged=%#%', | |
'current' => $current, |
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 | |
/* PLS | |
function get_post_by_slug($post_slug) { | |
global $wpdb; | |
$post_slug = '%' . $post_slug . '%'; | |
$post = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->posts LEFT JOIN wp_term_relationships ON wp_posts.ID = wp_term_relationships.object_id WHERE post_name LIKE %s ", $post_slug)); | |
return $post; | |
} |
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 | |
$ACF_mezo_neve = "ide"; | |
if( !empty(get_post_meta(get_the_ID(), $ACF_mezo_neve, true)) ){ | |
echo '<h4 class="kapcsolodo-fajlok">Kapcsolódó fájlok:</h4>'; | |
} |
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_value upload_max_filesize 128M | |
php_value post_max_size 128M | |
php_value max_execution_time 300 | |
php_value max_input_time 300 | |
php_value max_input_vars 10000 | |
php_value memory_limit 1024M |
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 | |
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40 | |
class DumpHTTPRequestToFile { | |
public function execute($targetFile) { | |
$data = sprintf( | |
"%s %s %s\n\nHTTP headers:\n", | |
$_SERVER['REQUEST_METHOD'], | |
$_SERVER['REQUEST_URI'], | |
$_SERVER['SERVER_PROTOCOL'] |
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 | |
foreach ($billing_fields as $field_key => $field) { | |
if (! in_array($field_key, (array) $billing_all_fields, true)) { | |
continue; | |
} | |
$function_name = 'get_' . $field_key; | |
if ($order->get_meta('_' . $field_key)) { |
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 | |
/** | |
* jetwoodie_plugins_affected_by function | |
* | |
* @param [type] $rules | |
* @return void | |
*/ | |
function jetwoodie_plugins_affected_by($rules) | |
{ | |
$affected = array(); |
NewerOlder