All muhaza's note in developing website. Front-end & uiux method. Real life implementation for webdesigner.
Sunday, 12 July 2020
CUSTOM PAGE FOR WORDPRESS
Friday, 10 July 2020
RESET MYSQL DATABASE
Do not delete, use truncate:
Truncate table XXX
The table handler does not remember the last used AUTO_INCREMENT value, but starts counting from the beginning. This is true even for MyISAM and InnoDB, which normally do not reuse sequence values.
If you cannot use TRUNCATE
(e.g. because of foreign key constraints) you can use an alter table after deleting all rows to restart the auto_increment:
if you want to use truncate
use this:
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table $table_name;
SET FOREIGN_KEY_CHECKS = 1;
Thursday, 9 July 2020
woocommerce : My-Account Dashboard Menu Style CSS
Tuesday, 7 July 2020
Echo won't render data from Wordpress Mysql
When I used this code, the result/echo display as I wanted.
<?php
$user_checks = $wpdb->get_results(
"
SELECT ID, user_nicename
FROM $wpdb->users
"
);
foreach ( $user_checks as $user_check )
{
echo $user_check->ID;
echo $user_check->user_nicename;
}
?>
But when I choose table other then what wordpress provide e.g:
<?php
$user_checks = $wpdb->get_results(
"
SELECT id, name
FROM $wpdb->uap_banners
"
);
foreach ( $user_checks as $user_check )
{
echo $user_check->id;
echo $user_check->name;
}
?>
The Result is blank...
I ask Wordpress community to help me
https://wordpress.stackexchange.com/questions/370534/when-wordpress-default-table-echo-success-when-plugin-table-echo-blank
he said
$wpdb
does not contain any reference to custom tables. So the uap_banners
property doesn't exist. You need to write in the table name the say way it was written when creating the table. So in your case that would probably be (assuming you included the database prefix):
$user_checks = $wpdb->get_results(
"
SELECT id, name
FROM {$wpdb->prefix}uap_banners
"
);
The problem solved
Monday, 6 July 2020
Cari cara untuk membuat table pass kosong di wordpress
function wp_set_password( $password, $user_id ) {
if ( ! empty( $userdata['user_pass'] ) && $userdata['user_pass'] !== $user_obj->user_pass ) {
Echo Any MYSQL Data in Wordpress Using Plugin
SELECT ID, wp_column
FROM $wpdb-> wp_tableWHERE wp_column =
'value'
AND wp_column = 5
Sunday, 5 July 2020
How to read / filter REST API Order / Sort Wordpress JSON
Saturday, 4 July 2020
JSON API User Wordpress REST Api
It seems that JSON API User
and JSON API Auth
plugins allow by default only connections over https.
In order to turn off this setting, you should send an extra parameter in the request:
insecure=cool
So try the following request:
http://example.org/api/user/generate_auth_cookie/?nonce=+4d080ff7b8&username=example&password=example&insecure=cool
email mailto: pretext
<a href="mailto:designoutsourced.com+info@gmail.com?subject=Maklumat%20lanjut%20pakej&body=Hai,%20saya%20berminat%20tahu%20lebi...
-
Looking at vue-cli repository I see two different ways of scaffolding vue projects. The v3 (beta) version, installed as npm install ...
-
component need at least this 3 component file 1. customers.component.ts import { Component , OnInit } from '@angular/core...