Web Prepration

Web Concept Tutorials

Wordpress

In this post I want to explain that how to get current user information in wordpress, WordPress is a most popular CMS(Content Management System) in the world. In wordpress we can create/develop multiple types web applications like ecoomerce site, blog, portal etc. WordPress provide lots of plugins and themes we can use themes according to need and implement it in your site at this time every website have subscription option and registration page So we explain here how to get user information in wordpress. WordPress provides lots of predefine functions and hooks which is most important for wordpress coding or customization of wordpress core functionality. You can copy below code and paste in your file and get logged in user details using wp_get_current_user()   this function is a wordpress predefine function which returns login user details. It returns data in object format.

  WebpreprationI’m a full-stack developer.  My hobby and

read more >>
Wordpress

In this article, I am going to explain “How to create custom post in WordPress” In WordPress we can create custom post type different ways  . There are two ways Ideally you should create a plugin when working with custom post types, but if you don’t know how to create plugin, or just need a quick test, you can use the functions.php file in your theme.

  Labels Labels is an array which defines the different labels that a custom post can have like name,singular_name,add_new,add_new_item etc. Description Description is a short description of post type which defines the about post type. Menu_position Menu position defines the position of menu in Admin panel. If setting it 5 it displayed after default post. has_archieve If set to true has_archieve, rewrite rules will be created for that post type, enabling a post type archive at http://mysite.com/posttype/ (by default)   WebpreprationI’m a full-stack developer.  My hobby and profession to

read more >>
Wordpress

Hooks in WordPress allow developers to easily tie their own code in with the WordPress core code base, themes, and plugins. In this post, we’ll discover what hooks are, go over the different types of hooks, and look at a few examples of hooks in action and filters hooks. A Hook is a generic term in WordPress that refers to places where you can add your own code or change any existing functionality using hooks what WordPress is doing or outputting by default. There two types of hooks in wordpress Action hooks Filter hooks Action Hooks An Action hooks in WordPress is a hook that is triggered at specific time when WordPress is running and lets you take an action. This can include things like creating a widget,shortcode,custom post types etc. Example of Action Hook

  Filter Hooks A Filter hooks in WordPress allows you users to get and modify any existing functionality of  WordPress  before

read more >>
Wordpress

WordPress theme is fantastic and there are millions themes for different purpose like eCommerce themes,blogs themes etc. But we need to change themes colors, buttons,header,footer and some functionality etc. If you create make changes in directly themes then it is a wrong way When themes updates available and update it then your changes is loss. The problem is that modifying a theme even slightly prevents you from updating it to a newer version in the future, because if you do try to update, you lose all your changes. How Child Themes Work And Why Use Child Themes for Any themes Because  child theme is a separate theme which depends on parent themes and we can change or create any functionality child theme according to need and child theme is a great idea for modifying theme core functionality. Child themes should always be used if you plan on modifying even a

read more >>
Wordpress

This post is about developing WordPress Theme from scratch step by step . If you want to create WordPress own theme need to follow all steps and create own theme of WordPress from scratch using bootstrap according to requirement here we describe how to create a WordPress theme with WordPress standard coding style.Here we describe WordPress theme creation from basic to standard label. In this post we will learn how to make our own responsive WordPress theme using Bootstrap.  Bootstrap is a responsive framework for building web sites and applications, and it’s a great starting point for building a responsive WordPress theme. WordPress Themes typically consist of three main types of files, in addition to images and JavaScript files. The stylesheet called style.css, which controls the presentation (visual design and layout) of the website pages. WordPress template files which control the way the site pages generate the information from your WordPress database

read more >>