0% found this document useful (0 votes)
19 views3 pages

Become A PHP Expert

Uploaded by

Shafiqul Islam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Become A PHP Expert

Uploaded by

Shafiqul Islam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

WordPress

Custom wp-admin
1. Install the plugin wps hide login from below link
2. https://wordpress.org/plugins/wps-hid...
3. After activation of same plugin
4. Go to setting and then wp hide login tab
5. After that put your desire word into input field of URL.
How to remove "Category:" in title from category pages

function prefix_category_title( $title ) {

if ( is_category() ) {

$title = single_cat_title( '', false );

return $title;

add_filter( 'get_the_archive_title', 'prefix_category_title' );

Woo-Commece

Hide Price

wp-content\plugins\woocommerce\includes\abstracts\abstract-wc-product.php

public function get_price_html( $deprecated = '' ) {

return apply_filters( 'woocommerce_get_price_html', "", $this );

//return apply_filters( 'woocommerce_get_price_html', $price, $this );

}
Codeigniter session is not working on PHP 7
1) Go to system/libraries/Session/Session.php

2) Search for session_start() Comment session_start() by adding //.

3) Go down to line around 312 (or search Security is king) and comment out all ini_set()

ini_set('session.use_trans_sid', 0);
ini_set('session.use_strict_mode', 1);
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.hash_function', 1);
ini_set('session.hash_bits_per_character', 4);

4) Then go to your main index.php ( the root index.php )

5) Add session_start() at the top.

6) Below session_start() add following lines commented in Session.php

ini_set('session.use_trans_sid', 0); //Comment this line if showing Warning:


ini_set(): A session is active. You cannot change the session module's ini settings at this time
ini_set('session.use_strict_mode', 1);
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.hash_function', 1);
ini_set('session.hash_bits_per_character', 4);

Codeigniter session is not working on PHP


7.2
1. Find and comment out(or remove) the following code from sessions.php
(system/libraries/session/session.php) and place it in your index.php at the top.

session_start(); // line around 140

ini_set('session.use_trans_sid', 0); // line around 314

ini_set('session.use_strict_mode', 1);
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.hash_function', 1);
ini_set('session.hash_bits_per_character',4);

2. and for .htaccess, use this


DirectoryIndex index.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|.well-known|images|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1

3. set your uri protocol to AUTO

$config['uri_protocol'] = 'AUTO';
$config['index_page'] = '';

You might also like