show dbs
This file contains hidden or 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
| // Getter | |
| module.exports = (property) => { | |
| // Determine the return type based on the property type | |
| const returnType = property.isNullable() ? `?${property.getType()}` : property.getType(); | |
| return ` | |
| /** | |
| * ${property.getterDescription()} | |
| * |
This file contains hidden or 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 | |
| /** | |
| * Call a shortcode function by tag name. | |
| * | |
| * @param string $tag The shortcode whose function to call. | |
| * @param array $atts The attributes to pass to the shortcode function. Optional. | |
| * @param array $content The shortcode's content. Default is null (none). | |
| * | |
| * @return string|bool False on failure, the result of the shortcode on success. | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * Disable elementor registered widget. | |
| * | |
| * This will disable all WordPress native widgets | |
| * | |
| * @param \Elementor\Widgets_Manager $widgets_manager Instance of elementor widgets manager | |
| * | |
| * @author obiPlabon <https://obiPlabon.im> | |
| * |
This file contains hidden or 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
| v-change-sys-hostname somedomain.com | |
| v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes' | |
| # v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'no'#mail domain = no | |
| v-update-host-certificate admin $HOSTNAME | |
| echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf |
This file contains hidden or 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
| <? | |
| // str_replace removes the JS part and makes it into a normal JSON file | |
| $followers=json_decode(str_replace('window.YTD.follower.part0 = ','',file_get_contents(__DIR__.'/followers.js')),true); | |
| echo "\n\n"; | |
| echo number_format(count($followers)).' followers'; | |
| echo "\n\n"; | |
This file contains hidden or 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 | |
| /** | |
| * ALERT! There are more than ten years since I wrote the first version (adaptation) of this code with PHP 5.6, | |
| * then I changed my code stack and I couldn't mantain this code anymore. Ten years ago worked like a charm. | |
| * Fell free to test, use, fork, update, etc. and if possible put in the comments how to fix, | |
| * if it doesn't work for you as it is, so other people could find answers. | |
| **/ | |
| /** | |
| * Get hearder Authorization |
This file contains hidden or 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
| /** | |
| * Enqueue custom fonts using protocol relative URL. | |
| * | |
| * Syntax: wp_enqueue_style( $handle, $src, $deps, $ver, $media ); | |
| * Ensure $handle is unique to prevent conflicts with plugins | |
| * | |
| * Note(s): The pipe (|) operator is used to load multiple typefaces in a single call. We also only load the weights we want * by comma seperating them, instead of loading every available weight. | |
| */ | |
| function theme_prefix_fonts() | |
| { |
This file contains hidden or 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: GET GOOGLE FONTS FROM THEME OPTIONS PANEL (REDUX PANEL) */ | |
| function themename_get_site_fonts(){ | |
| global $themename_redux; | |
| $fonts_string = ''; | |
| if (isset($themename_redux['google-fonts-select'])) { | |
| $i = 0; |
This file contains hidden or 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 | |
| /** | |
| * Make sure the function does not exist before defining it | |
| */ | |
| if( ! function_exists( 'remove_class_filter' ) ){ | |
| /** | |
| * Remove Class Filter Without Access to Class Object | |
| * | |
| * In order to use the core WordPress remove_filter() on a filter added with the callback |
NewerOlder