🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Klan1 Common WP Functions icon
Peut-être abandonné Testé jusqu'à 4.2.39 #1 in basic functions

Klan1 Common WP Functions

Basic functions needed by our others plugins and templates.

Installations actives10+10+ niveaux
Téléchargements · 30D46▲ +39.4% vs prev. 30d
Évaluation—0 avis
Score de santé23/100En danger
Téléchargements de tous les temps2.6KSince Nov 2013
Support résolu—Aucun fil de discussion récent
A besoin deWP 2.7Php tout
Téléchargements · 7j9▼ -43.8% week over week
Notre verdict

Envisager une alternative

Klan1 Common WP Functions shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 11 years ago, and scores 23/100 on our health check.

  • Petite base d'utilisateurs (plus de 10 installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 11 ans
  • Uniquement testé jusqu'à WordPress 4,2 (le dernier est de 7,1)

Téléchargements quotidiens

135Sep 2Oct 16Nov 30
Hier2
Moyenne quotidienne (1 ans)2
Jour de pointe134 mai 2026
12 Derniers mois639

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Klan1 Common WP Functions stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
basic functions >100 2,551 Best basic functions plugins →
développeur >100 10,000 Meilleurs plugins pour développeurs →
image resize >100 1,099 Best image resize plugins →
klan1 #1 2 Best klan1 plugins →

Adoption de version

Part de sites actifs par version.

  • 0.5100.0%

About Klan1 Common WP Functions

From the official readme · v0.5

Description

This functions are for those needs to resize images on their templates or plugins all the time.

FUNCTION: k1_get_post_thumb_url

DESCRIPTION

string k1_get_post_thumb_url(int $post_id)

This function return the URL for the FEATURED IMAGE (full sized) defined in a POST/PAGE even if the upload is no on the actual post. If is not defined returns the FIRST image if there is at least one.

Returns NULL if no jpg,png or gif images as attachments.

USAGE EXAMPLE

<?php echo k1_get_post_thumb_url($post_id); ?>

PARAMETERS

  • $post_id If is empty, we will try to get the POST ID from the global $post var

FUNCTION: k1_get_post_timthumb_img_url

DESCRIPTION

string k1_get_post_timthumb_img_url(int $post_id, int $width, int $height, int $crop, char $align, int $quality)

Returns the IMAGE full URL using timthumb script to resize the post featured image. Use this when you only need the URL not the IMG html tag.

USAGE EXAMPLE

<?php echo k1_get_post_timthumb_img_url(null, 80, 50, 1, "t", 50); ?>

PARAMETERS

  • $post_id If is empty, we will try to get the POST ID from the global $post var
  • $width This is numeric in pixels, if you use 0 width will be proportional to height. See: http://www.binarymoon.co.uk/demo/timthumb-basic/
  • $height This is numeric in pixels, if you use 0 height will be proportional to height. See: http://www.binarymoon.co.uk/demo/timthumb-basic/
  • $crop Use: 0 Resize to Fit specified dimensions (no cropping), 1 Crop and resize to best fit the dimensions (default), 2 Resize proportionally to fit entire image into specified dimensions, and add borders if required, 3 Resize proportionally adjusting size of scaled image so there are no borders gaps, see: http://www.binarymoon.co.uk/demo/timthumb-zoom-crop/
  • $align c : position in the center (this is the default), t : align top, tr : align top right, tl : align top left, b : align bottom, br : align bottom right, bl : align bottom left, l : align left, r : align rightSee: http://www.binarymoon.co.uk/2010/08/timthumb-part-4-moving-crop-location/
  • $quality 70 : Image quality from the original uploaded image in percentage

NOTE: If you just define one height or width as zero (0) the other one will conserve image proportion, if is not defined it will be default value.

FUNCTION: k1_get_post_thumb_img_html

DESCRIPTION

string k1_get_post_thumb_img_html(int $post_id, boolean $resize, int $width, int $height, int $crop, char $align, int $quality)

This function returns the FULL IMG HTML tag for the post featured image using TIMTHUMB or not as desired

USAGE EXAMPLE

<?php echo k1_get_post_thumb_img_html(null, true, 80, 50, 1, "t", 50); ?>

PARAMETERS

  • $post_id If is empty, we will try to get the POST ID from the global $post var
  • $resize TRUE to use timthumb script to resize the image, FALSE to return the image without any dimension change.
  • $width This is numeric in pixels, if you use 0 width will be proportional to height. See: http://www.binarymoon.co.uk/demo/timthumb-basic/
  • $height This is numeric in pixels, if you use 0 height will be proportional to height. See: http://www.binarymoon.co.uk/demo/timthumb-basic/
  • $crop Use: 0 Resize to Fit specified dimensions (no cropping), 1 Crop and resize to best fit the dimensions (default), 2 Resize proportionally to fit entire image into specified dimensions, and add borders if required, 3 Resize proportionally adjusting size of scaled image so there are no borders gaps, see: http://www.binarymoon.co.uk/demo/timthumb-zoom-crop/
  • $align c : position in the center (this is the default), t : align top, tr : align top right, tl : align top left, b : align bottom, br : align bottom right, bl : align bottom left, l : align left, r : align rightSee: http://www.binarymoon.co.uk/2010/08/timthumb-part-4-moving-crop-location/
  • $quality 70 : Image quality from the original uploaded image in percentage

NOTE: If you just define one height or width as zero (0) the other one will conserve image proportion, if is not defined it will be default value.

TODO:

  • Get the attachment metadata to make the longdesc=”” and alt=”” IMG properties.
  • Use the parameters as array to implement more options

Installation

  1. Upload k1-functions directory to the /wp-content/plugins/ directory
  2. Activez le plugin via le menu « Plugins » dans WordPress
  3. All ready

Journal de modifications

0.5

  • 70% quality by default and now can be set by developer on function call with a parameter.
  • now the featured image can be used from another post, in < 0.4 everyone has to upload de image on the post by force
  • Readme.txt changed for better use understanding

0.4

  • 100% quality on thumb generation, was 60% before.
  • Readme.txt changed for better use understanding

0.3.9

  • Various code fixes.
  • removed url encoded get parameters

0.3.7

  • Various code fixes.
  • url encoded get parameters

0.3

  • Various code fixes.
  • TimThumb allow external images

0.2

  • Various code fixes.
  • Better coding and comments.

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

FAQ

Klan1 Common WP Functions: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is Klan1 Common WP Functions free?

Yes. Klan1 Common WP Functions is free to download and use from the official WordPress.org plugin directory.

Is Klan1 Common WP Functions safe to use in 2026?

Klan1 Common WP Functions shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 11 years ago, and scores 23/100 on our health check.

How many websites use Klan1 Common WP Functions?

Klan1 Common WP Functions is active on 10+ WordPress websites and has been downloaded 2,569 times since it launched in November 2013. It was downloaded 46 times in the last 30 days.

Does Klan1 Common WP Functions work with WordPress 7.1?

Klan1 Common WP Functions is officially tested up to WordPress 4.2.39, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Klan1 Common WP Functions last updated?

The latest version, 0.5, was released on August 12, 2015 (11 years ago).

Who makes Klan1 Common WP Functions?

Klan1 Common WP Functions is developed and maintained by Alejandro Trujillo J..

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir