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
// Hide Admin Meta Boxes | |
add_action( 'admin_menu', 'remove_meta_boxes' ); | |
function remove_meta_boxes() { | |
// remove_meta_box( 'submitdiv', 'post', 'normal' ); // Publish meta box | |
remove_meta_box( 'commentsdiv', 'post', 'normal' ); // Comments meta box | |
remove_meta_box( 'revisionsdiv', 'post', 'normal' ); // Revisions meta box | |
remove_meta_box( 'authordiv', 'post', 'normal' ); // Author meta box | |
remove_meta_box( 'slugdiv', 'post', 'normal' ); // Slug meta box | |
remove_meta_box( 'tagsdiv-post_tag', 'post', 'side' ); // Post tags meta box | |
// remove_meta_box( 'categorydiv', 'post', 'side' ); // Category meta box |
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
/** | |
* TinyMCE conf | |
*/ | |
function SissibayTinyMCE($in) | |
{ | |
$in['remove_linebreaks']=false; | |
$in['gecko_spellcheck']=false; | |
$in['keep_styles']=false; | |
$in['accessibility_focus']=false; |
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
/*Hide Wordpress Admin bar */ | |
add_filter('show_admin_bar', '__return_false'); |
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
tell application "Path Finder" | |
open location "smb://user:pass@server/folder" | |
end tell | |
tell application "Finder" | |
open location "smb://user:pass@server/folder" | |
end tell |
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
do shell script "/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper & " |
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
set sleepTime to 0 | |
set theText to text returned of (display dialog "Ruhezustand aktivieren in:" default answer "1 h 30 m") | |
set defaults to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to " " -- use " " as delimiters | |
set theWords to text items of theText | |
set timesToRun to (number of theWords) / 2 | |
set n to 0 -- index |
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
//hide Page Seite | |
function hide_buttons() | |
{ | |
global $current_screen; | |
if($current_screen->id == 'page'); | |
{ | |
echo '<style>.add-new-h2{display: none;}</style>'; | |
} |
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
// Hide Admin Meta Boxes | |
add_action( 'admin_menu', 'remove_meta_boxes' ); | |
function remove_meta_boxes() { | |
// remove_meta_box( 'submitdiv', 'post', 'normal' ); // Publish meta box | |
remove_meta_box( 'commentsdiv', 'post', 'normal' ); // Comments meta box | |
remove_meta_box( 'revisionsdiv', 'post', 'normal' ); // Revisions meta box | |
remove_meta_box( 'authordiv', 'post', 'normal' ); // Author meta box | |
remove_meta_box( 'slugdiv', 'post', 'normal' ); // Slug meta box | |
remove_meta_box( 'tagsdiv-post_tag', 'post', 'side' ); // Post tags meta box | |
// remove_meta_box( 'categorydiv', 'post', 'side' ); // Category meta box |
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
// remove menus for non-admins | |
add_action( 'admin_init', 'my_remove_menu_pages' ); | |
function my_remove_menu_pages() { | |
if(!current_user_can('manage_options')) { | |
// Remove the "Tools" menu | |
remove_menu_page('tools.php'); | |
remove_menu_page('edit-comments.php'); | |
remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=post_tag' ); | |
remove_submenu_page( 'edit.php?post_type=page', 'post-new.php?post_type=page' ); |
OlderNewer