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: Example Shortcode Plugin | |
Plugin URI: https://wordpress.org/plugins/ | |
Description: Just another example shortcode plugin. | |
Version: 1.0.0 | |
Author: David Angulo | |
Author URI: https://www.davidangulo.xyz/ | |
*/ |
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 | |
function seoFriendlyUrl($string) { | |
$string = strtolower($string); | |
$string = preg_replace('/[^a-z0-9_\s-]/', '', $string); | |
$string = preg_replace('/[\s_]/', '-', $string); | |
return $string; | |
} | |
//Visit the tutorial for more information | |
//https://www.davidangulo.xyz/how-to-create-seo-friendly-url-in-php/ |
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: Upload Files Programatically | |
Plugin URI: https://wordpress.org/plugins/ | |
Description: Just another file uploader plugin. | |
Version: 1.0.0 | |
Author: David Angulo | |
Author URI: https://www.davidangulo.xyz/ | |
*/ |
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: My WordPress Plugin | |
Plugin URI: https://wordpress.org/plugins/ | |
Description: Just another WordPress plugin. | |
Version: 1.0.0 | |
Author: David Angulo | |
Author URI: https://www.davidangulo.xyz/ | |
*/ |
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 | |
function abbreviateNumber($num) { | |
if ($num >= 0 && $num < 1000) { | |
$format = floor($num); | |
$suffix = ''; | |
} | |
else if ($num >= 1000 && $num < 1000000) { | |
$format = floor($num / 1000); | |
$suffix = 'K+'; | |
} |
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 to check up e-mail | |
* | |
* @author Konstantin Granin <kostya@granin.me> | |
* @copyright Copyright (c) 2015, Konstantin Granin | |
*/ | |
class verifyEmail { |
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: My cron WordPress plugin | |
Plugin URI: wordpress.org/plugins | |
Description: A simple WordPress plugin that executes many times in a certain interval. | |
Version: 1.0.0 | |
Author: David Angulo | |
Author URI: https://www.davidangulo.xyz/ | |
License: GPL2 | |
*/ |
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: Wordpress plugin with settings | |
Plugin URI: wordpress.org/plugins | |
Description: Just another WordPress plugin with settings page. | |
Version: 1.0.0 | |
Author: David Angulo | |
Author URI: https://www.davidangulo.xyz/ | |
License: GPL2 | |
*/ |
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: Dashboard Widget Example | |
Plugin URI: https://www.davidangulo.xyz/portfolio/ | |
Description: Just another WordPress plugin with dashboard widget. | |
Version: 1.0.0 | |
Author: David Angulo | |
Author URI: https://www.davidangulo.xyz/ | |
License: GPL2 | |
*/ |
OlderNewer