Remove Admin Menu Items
function remove_menus(){
remove_menu_page( 'index.php' ); //Dashboard
remove_menu_page( 'edit.php' ); //Posts
remove_menu_page( 'upload.php' ); //Media
remove_menu_page( 'edit.php?post_type=page' ); //Pages
remove_menu_page( 'edit-comments.php' ); //Comments
remove_menu_page( 'themes.php' ); //Appearance
remove_menu_page( 'plugins.php' ); //Plugins
remove_menu_page( 'users.php' ); //Users
remove_menu_page( 'tools.php' ); //Tools
remove_menu_page( 'options-general.php' ); //Settings
}
add_action( 'admin_menu', 'remove_menus' );
Client Email Settings Template
I think these are all the settings you will need. Just pm me if you need some assistance. The names should match up ??
Host name : bladei876.jnb9.host-h.net
User Name: support@coverweb.co.za
Password : (Your Password)
Incoming server: mail.coverweb.co.za
Outgoing (SMTP) server: smtp.coverweb.co.za
Server PHP Memory Limits
When setting your domain php memory limit if your service provider does not give you a drop down or options for what PHP memory limits you can set. Here they are listed below.
16mb
32mb
64mb
72mb
96mb
128mb
160mb
192mb
224mb
256mb
320mb
384mb
448mb
512mb
Create array in a foreach loop from wordpress custom post categories
<?php
$category = get_terms('gallery_albums');//custom category name
foreach ($category as $catVal) {
$AlbumName[] = $catVal->name;
}
echo "<pre>";
print_r($AlbumName);
echo "</pre>";
?>
WordPress Album-Gallery
List Categories For Custom Post
<?php
$category = get_terms('task_categories');//custom category name
foreach ($category as $catVal) {
echo '<h2>'.$catVal->name.'</h2>';
}
?>
OOP (Object-Oriented Programming)
4 Pillars of OOP
Encapsulation
Abstraction
Inheritance
Polymorphism
ID Number Breakdown
The first six digits (YYMMDD) are based on your date of birth
23 January 1988 would be written as : 88 01 23
The next four digits (SSSS) are used to define your gender
females are assigned numbers in the range 0000-4999
males are assigned numbers in the range 5000-9999
The next digit (C) shows if you are an
SA citizen – 0 – or a permanent resident – 1
The next digit (A) was used until the late 1980s to indicate a person’s race. This has been eliminated and old ID numbers were reissued to remove this.
The last digit (Z) is a checksum digit – used to check that the number sequence is accurate using the Luhn algorithm.
Animated Labels Styling
.animated-label.active .animated-label-input input[data-input], .animated-label.active .animated-label-input input[data-input]:empty {
color: initial;
}
.animated-label-input input[data-input], .animated-label-input input[data-input]:empty {
color: transparent;
}
Limit User Role to their own posts in WordPress Admin
function posts_for_current_author($query) {
global $pagenow;
if( 'edit.php' != $pagenow || !$query->is_admin )
return $query;
if( !current_user_can( 'edit_others_posts' ) ) {
global $user_ID;
$query->set('author', $user_ID );
}
return $query;
}
add_filter('pre_get_posts', 'posts_for_current_author');
The post title says it all…
Note: If you cut down admin privileges for user roles as well you can use the admin section for front end posting. Just remember you need to include admin styles differently when its for the admin section. You need a script for the functions.php file.
Outsystems Including External Libraries
View – Forum Discussion.
View – Including external CSS in outsystems.
View – Including external javascript in outsystems MOBILE application.
View – Including external javascript in outsystems WEB application
View – Javascript links regarding Outsystems