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: FUNKCJONALNOŚCI JAWOROWI.CZ | |
* Plugin URI: https://jaworowi.cz | |
* Description: Plugin techczniczny - nie usuwać | |
* Version: 1.0 | |
* Author: Jakub Jaworowicz | |
* Author URI: https://jaworowi.cz | |
*/ |
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 // Put into functions.php without this line | |
add_role('shop_manager', __('Shop Manager', 'woocommerce'), array( | |
'read' => true, | |
'read_private_pages' => true, | |
'read_private_posts' => true, | |
'edit_posts' => true, | |
'edit_pages' => true, | |
'edit_published_posts' => true, | |
'edit_published_pages' => true, | |
'edit_private_pages' => true, |
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 | |
/** | |
* @snippet Wyświetl produkty na stronie potwierdzenia zamówienia | |
* @how-to https://jaworowi.cz/?p=15220 | |
* @author Jakub Jaworowicz | |
* @testedwith WooCommerce 5.5.1 | |
*/ | |
/* W pliku functions.php lub wtyczce funkcyjnej - wklej bez <?php na początku! */ |
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 Pro repeater field shortcode | |
* | |
* I created this shortcode function because it didn't exist and it was being requested by others | |
* I originally posted it here: https://support.advancedcustomfields.com/forums/topic/repeater-field-shortcode/ | |
* | |
* @attr {string} field - (Required) the name of the field that contains a repeater sub group | |
* @attr {string} sub_fields - (Required) a comma separated list of sub field names that are part of the field repeater group | |
* @attr {string} post_id - (Optional) Specific post ID where your value was entered. Defaults to current post ID (not required). This can also be options / taxonomies / users / etc |
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
define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/aplikacja/inc/' ); | |
define( 'WP_CONTENT_URL', 'http://testowa1.local/aplikacja/inc' ); | |
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/aplikacja/inc/extensions' ); | |
define( 'WP_PLUGIN_URL', 'http://testowa1.local/aplikacja/inc/extensions' ); | |
define( 'UPLOADS', 'aplikacja/inc/media' ); |
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
remove_filter( 'authenticate', 'wp_authenticate_email_password', 20 ); |
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 jcz_fake_error(){ | |
return 'Błąd'; | |
} | |
add_filter( 'login_errors', 'jcz_fake_error' ); |
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
<FilesMatch "install.*\.php"> | |
Order allow,deny | |
Deny from all | |
</FilesMatch> |
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
<FilesMatch "\.(?i:php)$"> | |
Order allow,deny | |
Deny from all | |
</FilesMatch> | |
<Files wp-tinymce.php> | |
Allow from all | |
</Files> | |
<Files ms-files.php> | |
Allow from all | |
</Files> |
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
// Ukrycie RSS | |
remove_action('wp_head', 'wp_generator'); | |
// Ukrycie w RSS | |
function jcz_generator( $generator, $type ) { | |
return ''; | |
} | |
add_filter( 'the_generator', 'jcz_generator', 10, 2 ); | |
// Usunięcie Query w skryptach |
NewerOlder