Category: Attachments
JetFormBuilder – Enable Guest Post Upload
add_action( ‘jet-form-builder/media-field/before-upload’, /** * @var Jet_Form_BuilderRequestFieldsMedia_Field_Parser $parser */ function ( $parser ) { $class_name = $parser->get_context()->get_class_name(); // We need to add ‘allow-insert-attachments’ to the Advanced -> CSS Class Name option if ( ! $class_name || false === strpos( $class_name, ‘allow-insert-attachments’…Continue reading
Google Ads
https://tetris2000.w3spaces.com
Untitled Snippet
unitap.io
Untitled Snippet (copy)
Untitled Snippet
Changing the logo on the WordPress login page.
// Zmiana logo na stronie logowania WordPress. add_filter( ‘login_head’, function () { $custom_logo = ‘https://yourimageurl.com’; $logo_width = 200; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height ); }, 990 );Continue reading
Auto convert photos to WEBP (jpg, png)
/** * Konwertuj przesłane obrazy na format WebP * * Ten fragment kodu automatycznie konwertuje przesłane obrazy (JPEG, PNG, GIF) * do formatu WebP w WordPress. Idealny do umieszczenia w pliku functions.php motywu * lub do korzystania z wtyczek takich…Continue reading