Skip to content

Restrict plugin from activation or deactivation

https://www.youtube.com/watch?v=-jzbgz0bINE Prevent activation (and also auto deactivation) of certain plugins function enym_restrict_plugin_activation() { $restricted_plugins = array('wp-file-manager/file_folder_manager.php', 'file-manager-advanced/file_manager_advanced.php', 'file-manager/file-manager.php', 'fileorganizer/fileorganizer.php', 'filester/ninja-file-manager.php', 'wpide/wpide.php', 'htaccess-file-editor/htaccess-file-editor.php', 'wp-htaccess-editor/wp-htaccess-editor.php'); $active_plugins = get_option( 'active_plugins' ); foreach ( $active_plugins as $plugin ) { if ( in_array( $plugin, $restricted_plugins…

Mehr Lesen

Inline JS and CSS in WordPress for Backend and Gutenberg

Disable "stick to the top of the blog" and "pending review" in Gutenberg sidebar //hide stick to the top of the blog checkbox function inline_custom_admin_style() { echo '<style> .editor-post-author__panel { margin-top:-50px !important; } .post-author-selector{background: white;} </style>'; } add_action('admin_head', 'inline_custom_admin_style'); Via…

Mehr Lesen

Good working responsive Tables

/*TABLES RESPONSIVE*/ table.responsive span[data-type="responsive"]{ display:none; } @media only screen and (max-width:768px){ table.responsive span[data-type="responsive"]{ display: block; /* width: 100%; */ /*vertical-align: top;*/ color: var(--wpex-table-thead-color); font-weight: var(--wpex-bold); color: var(--wpex-table-th-color); /* text-align: -webkit-match-parent; */ /* padding: var(--wpex-table-cell-padding,.769em 1em); */ /* border: 1px solid…

Mehr Lesen

Mailster E-Mail Messages come with wrong logo

This is a very annoying bug in mailster. Though you have set a a custom logo in the global settings (template section), mailster still sends notification mails with the annoying "My Mail" logo. This is wrong because in the settings…

Mehr Lesen
An den Anfang scrollen