Web Prepration

Web Concept Tutorials

Laravel

Laravel is a most powerful framework of PHP which is a purely depends on PHP artisan command. In this post I want to explain how to install and setup laravel on localhost environment. Laravel is created by Taylor Otwell and first beta version released in 2011, It is a fully followed the MVC structured and artisan command laravel is the best php framework comparison to CodeIgnitor,Yii2 etc. Laravel framework Features Bundles provide a modular with bundled features already available for easy addition to applications. Laravel use Composer as a dependency manager to add framework. Object relation mapping is an advanced PHP implementation of the active record pattern, providing at the same time internal methods for enforcing constraints on the relationships between database objects. Laravel provide Query builder more direct database access alternative to the Eloquent Object Relational Mapping. Instead of requiring SQL queries to be written directly, Laravel’s query builder provides a set of classes and methods capable of building queries

read more >>
PHP

PayPal is an American international most popular payment gateway  allowing payments and money transfers to be made through the Internet to send and receive payment in worldwide. PayPal is a widely used payment gateway to accept payment through internet. In this post  I want to explain how to work Paypal payment system development and sending arguments while click buy now button. It’s simple and very easy to integrate in php. Before Integration PayPal  need to create a paypal Sandbox Account First go to the PayPal Developer page and log in to your PayPal account. If you don’t have any PayPal account, sign up for a PayPal account before integration. Go to Dashboard -> Sandbox -> Accounts and create test accounts for seller and buyer by selecting Business and Personal respectively. Now login paypal sandbox with paypal business account and go to My Account ->Profile->My selling tools click on manage paypal buttons and copy the button code

read more >>
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 >>