Skip to content

Instantly share code, notes, and snippets.

View mehdi-eybak's full-sized avatar
🏠
کار از خانه

mehdi eybak abadi mehdi-eybak

🏠
کار از خانه
View GitHub Profile
@mehdi-eybak
mehdi-eybak / get all wordpress user meta_key.php
Last active November 15, 2022 22:04
return all WordPress user meta_key through the database
<?php
/**
* Returns all unique meta key from user meta database
*
* @param no parameter right now
* 2 pieces of attractive WordPress code
*/
/**
@mehdi-eybak
mehdi-eybak / Remove plugin information from the plugins page wordpress.php
Last active November 15, 2022 22:05
Use the filter below to delete the information of the plugin installed in WordPress and the WordPress plugins page. Note that in the first value, put the folder and the main file of the plugin, and in the second value, only the main file of the plugin without adding the folder.
<?php
add_filter( 'all_plugins', function ( $plugins ) {
$shouldHide = ! array_key_exists( 'show_all', $_GET );
if ( $shouldHide ) {
$hiddenPlugins = [
'woocommerce-checkout-manager/woocommerce-checkout-manager.php',
'woocommerce-checkout-manager.php',
];
foreach ( $hiddenPlugins as $hiddenPlugin ) {