<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Wordpress Website - Ankit Sudhera Portfolio Website Forum				            </title>
            <link>https://ankitsudhera.com/forum/wordpress-website/</link>
            <description>Ankit Sudhera Portfolio Website Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 22 Apr 2026 11:55:45 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>How to show user login times for WordPress site without plugin using MySQL Query</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/how-to-show-user-login-times-for-wordpress-site-without-plugin-using-mysql-query/</link>
                        <pubDate>Mon, 05 May 2025 08:06:21 +0000</pubDate>
                        <description><![CDATA[You can do it without using plugin with the following SQL query to fetch and show the records. But please create a page separately.
&quot;
SELECT user_id, wp_users.user_login, FROM_UNIXTIME(sub...]]></description>
                        <content:encoded><![CDATA[<p>You can do it without using plugin with the following SQL query to fetch and show the records. But please create a page separately.</p>
<p>"</p>
<p>SELECT user_id, wp_users.user_login, FROM_UNIXTIME(substring_index(substring_index(meta_value, '"login";i:', -1), ';}}', 1)) as last_login FROM wp_usermeta inner join wp_users on user_id = wp_users.ID WHERE meta_key='session_tokens' ORDER BY `last_login` DESC</p>
<p>"</p>
<p>You can replace the table name wp with your table name prefix. </p>
<p>If you have any questions, please comments or contact us.</p>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/how-to-show-user-login-times-for-wordpress-site-without-plugin-using-mysql-query/</guid>
                    </item>
				                    <item>
                        <title>how to hide ‘Howdy’ with WP 6.6.1 anymore</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/how-to-hide-howdy-with-wp-6-6-1-anymore/</link>
                        <pubDate>Thu, 01 Aug 2024 06:54:34 +0000</pubDate>
                        <description><![CDATA[Please see the below 2 scripts to remove the howdy in Wordpress, you can use any 1:
Solution 1:
add_filter( &#039;admin_bar_menu&#039;, &#039;replace_wordpress_howdy&#039;, PHP_INT_MAX - 100);
function repla...]]></description>
                        <content:encoded><![CDATA[<p>Please see the below 2 scripts to remove the howdy in Wordpress, you can use any 1:</p>
<p><strong>Solution 1:</strong></p>
<pre contenteditable="false">add_filter( 'admin_bar_menu', 'replace_wordpress_howdy', PHP_INT_MAX - 100);
function replace_wordpress_howdy( $wp_admin_bar ) {
	$my_account = $wp_admin_bar-&gt;get_node('my-account');
	$wp_admin_bar-&gt;add_node( array(
	'id' =&gt; 'my-account',
	'title' =&gt; substr($my_account-&gt;title, strpos($my_account-&gt;title, '&lt;span class="display-name"&gt;')),
	));
}</pre>
<p><strong>Solution 2:</strong></p>
<pre contenteditable="false">function pac_da_custom_admin_bar_user_name() {
    global $wp_admin_bar;
    // Define the ID of the node representing the "My Account" section in the admin bar.
    $node_id = 'my-account';
    // Check if the specified node exists in the admin bar.
    if ($wp_admin_bar-&gt;get_node($node_id)) {
        // Get the current title of the "My Account" section.
        $current_title = $wp_admin_bar-&gt;get_node($node_id)-&gt;title;
        // Split the current title into an array based on the comma and space separator.
        $newTitle = explode(", ", $current_title);
        // Update the "My Account" section title with the second part of the split title if available, 
        // otherwise keep the current title.
        $wp_admin_bar-&gt;add_node(array(
            'id' =&gt; $node_id,
            'title' =&gt; isset($newTitle) &amp;&amp; isset($newTitle) ? $newTitle : $current_title,
        ));
    }
}
// Hook the custom admin bar user name function to run before the admin bar is rendered.
add_action('wp_before_admin_bar_render', 'pac_da_custom_admin_bar_user_name');</pre>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/how-to-hide-howdy-with-wp-6-6-1-anymore/</guid>
                    </item>
				                    <item>
                        <title>Add a Global Button shows in all pages WordPress</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/add-a-global-button-shows-in-all-pages-wordpress/</link>
                        <pubDate>Mon, 03 Jul 2023 17:56:15 +0000</pubDate>
                        <description><![CDATA[Follow the below steps:
1. Add the below code in theme stlye.css
a.calendar {
    font-family: Tahoma, sans-serif;
    background-color: #ff0000;
    color: #ffffff;
    border-style: ...]]></description>
                        <content:encoded><![CDATA[<p>Follow the below steps:</p>
<p>1. Add the below code in theme stlye.css<br /><br /></p>
<pre contenteditable="false">a.calendar {
    font-family: Tahoma, sans-serif;
    background-color: #ff0000;
    color: #ffffff;
    border-style: solid;
    border-width: 0px;
    right: -1px;
    cursor: pointer;
    -webkit-transform-origin: 100% 100%;
    -moz-transform-origin: 100% 100%;
    -o-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -moz-border-radius-topright: 10px;
    border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-top-left-radius: 10px;
    position: fixed;
    margin: 0;
    padding: 6px 13px 8px 13px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: normal;
    border-style: solid;
    display: block;
    z-index: 100000;
    top: 35%;
}</pre>
<p>2. Add the below button code in theme functions file</p>
<pre contenteditable="false">add_action( 'wp_footer', 'wp_footer2');
function wp_footer2(){
&lt;a class="calendar" href="/calendar"&gt;Calendar&lt;/a&gt;
}</pre>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/add-a-global-button-shows-in-all-pages-wordpress/</guid>
                    </item>
				                    <item>
                        <title>How to Change The WordPress Admin Login URL Without Plugin</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/how-to-change-the-wordpress-admin-login-url-without-plugin/</link>
                        <pubDate>Thu, 15 Jun 2023 11:33:44 +0000</pubDate>
                        <description><![CDATA[There are many methods, but I will mention few as below:
First Method (Redirect using site cookie, function and htaccess):

Add below constants to wp-config.php file:
define(&#039;WP_ADMIN_DI...]]></description>
                        <content:encoded><![CDATA[<p>There are many methods, but I will mention few as below:</p>
<p><span style="font-size: 14pt"><strong>First Method </strong>(Redirect using site cookie, function and htaccess):</span></p>
<ol>
<li><span><span>Add below constants to <strong>wp-config.php</strong> file:<br /></span></span>
<pre contenteditable="false">define('WP_ADMIN_DIR', 'secret-folder');
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);</pre>
<p> </p>
</li>
<li><span>Add below snippet in </span><strong>function.php</strong><span><span> file of your active theme<br /><br /></span></span>
<pre contenteditable="false">add_filter('site_url', 'wpadmin_filter', 10, 3);
function wpadmin_filter( $url, $path, $orig_scheme ) {
    $old = array( "/(wp-admin)/");
    $admin_dir = WP_ADMIN_DIR;
       $new = array($admin_dir);
    return preg_replace( $old, $new, $url, 1);
}</pre>
<span><br /><br /></span></li>
<li><span>Add below lines to </span><strong>.htaccess</strong><span><span> file<br /><br /></span></span>
<pre contenteditable="false">RewriteRule ^secret-folder/(.*) wp-admin/$1?%{QUERY_STRING} </pre>
</li>
</ol>
<p> </p>
<p><span style="font-size: 14pt"><strong>Second Method</strong> (Rename wp-login with new file like new-secret-login-file):</span></p>
<ol>
<li>Rename <em><span>wp-login.php</span></em> with new file like <em>new-secret-login-file.php</em> in the root admin folder<em><span>.</span></em></li>
<li><span>Open the </span><em><strong>new-secret-login-file.php<span> </span></strong></em><span>and find and replace every instance of "wp-login.php" in the file – then replace it with your new file name as </span><em><strong>new-secret-login-file.php</strong>.</em></li>
<li><span>Now you should be able to log in by navigating to your new URL. In our case, it’s </span><strong>domain/new-secret-login-file.php</strong><span>.<br /></span></li>
</ol>
<p>Note: If any HTTP/HTTPS requests to the <strong>/wp-login.php</strong>, or <strong>/wp-admin,</strong> directories will lead visitors to a 404 not-found page.</p>
<p><span style="font-size: 14pt"><strong>Third Method </strong><span style="font-size: 14pt">(</span>Protect <em>wp-login.php</em> With a Cookie and .htaccess):</span></p>
<ol>
<li>Add this code into your <strong>.htaccess</strong> file in the root folder.<br /><br />
<pre contenteditable="false">&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_COOKIE} !^.*wp\-connect=2917998723.*$ 
RewriteRule wp-login.php - 
&lt;/IfModule&gt;</pre>
<br /><br /></li>
<li>Create a new login page for cookie like new-secret-login-page.php and ad below code:<br /><br />
<pre contenteditable="false">&lt;?php
setcookie("wp-connect", 2917998723);
header("Location: wp-login.php");</pre>
<p> </p>
</li>
</ol>
<span><strong>Note</strong>: Please remember, Admins need to first go to </span><strong><em>domain/wp-connect.php</em></strong><span> to access </span><span><strong><em>wp-login.php</em></strong></span>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/how-to-change-the-wordpress-admin-login-url-without-plugin/</guid>
                    </item>
				                    <item>
                        <title>How to create a new WordPress admin user in phpMyAdmin</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/how-to-create-a-new-wordpress-admin-user-in-phpmyadmin/</link>
                        <pubDate>Wed, 17 May 2023 08:27:26 +0000</pubDate>
                        <description><![CDATA[Open Phpmyadmin application.
Select your database.
Go to wp_users table and add a new user.
Then go to wp_usermeta and add below details: 

user_id: Fill in the ID of the user you creat...]]></description>
                        <content:encoded><![CDATA[<ol>
<li>Open <strong>Phpmyadmin</strong> application.</li>
<li>Select your <strong>database</strong>.</li>
<li>Go to <strong>wp_users</strong> table and add a new user.</li>
<li>Then go to <span>wp_usermeta and add below details: </span>
<ul>
<li><code>user_id</code>: Fill in the<span> </span><code>ID</code><span> </span>of the user you created in the previous step.</li>
<li><code>meta_key</code>: Enter<span> </span><code>wp_capabilities</code></li>
<li><code>meta_value</code>: Fill in the field with<span> </span><code>a:1:{s:13:"administrator";s:1:"1";}</code></li>
</ul>
</li>
<li><span>You can now log in to your WordPress site as admin using the created credentials.</span></li>
</ol>
<p><span>If you like this article please share or add a link to your site, Blog, Facebook page, Twitter or any online page. Thank you.</span></p>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/how-to-create-a-new-wordpress-admin-user-in-phpmyadmin/</guid>
                    </item>
				                    <item>
                        <title>make wp-content/debug.log inaccessible</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/</link>
                        <pubDate>Wed, 03 Aug 2022 09:08:26 +0000</pubDate>
                        <description><![CDATA[My site was infected with a malware, after restore a backup and run a scan using Wordfence, it mentions:
/wp-content/debug.log is publicly accessible and may expose source code or sensitive...]]></description>
                        <content:encoded><![CDATA[<p>My site was infected with a malware, after restore a backup and run a scan using Wordfence, it mentions:</p>
<p>/wp-content/debug.log is publicly accessible and may expose source code or sensitive information about your site</p>
<p>Can you please help me to make wp-content/debug.log inaccessible?</p>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>Love Bird</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/</guid>
                    </item>
				                    <item>
                        <title>Can’t remove Demo Store Notice</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/cant-remove-demo-store-notice/</link>
                        <pubDate>Tue, 02 Aug 2022 09:21:55 +0000</pubDate>
                        <description><![CDATA[You can remove by visiting Appearacnce → Customize, WooCommerce → Store Notice, Uncheck the Enable store notice checkbox and click the Publish button. 
If still doesn&#039;t work, please clear c...]]></description>
                        <content:encoded><![CDATA[<p>You can remove by visiting <span style="color: #32373c;font-size: 14.4px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none;background-color: #ffffff;float: none"><span></span></span><strong style="font-weight: bold;color: #32373c;font-size: 14.4px;font-style: normal;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none;background-color: #ffffff">Appearacnce → Customize, WooCommerce → Store Notice, </strong>Uncheck the<span> </span><strong style="font-weight: bold">Enable store notice</strong><span> </span>checkbox and click the<span> </span><strong style="font-weight: bold">Publish</strong><span> </span>button. </p>
<p>If still doesn't work, please clear cache for the website and looks, it will be fixed.</p>
<p>If there is still issue use below css to hide this panel.</p>
<p><span style="color: #767676;font-size: 14.4px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none;background-color: #fbfbfb;float: none">.woocommerce-store-notice{</span></p>
<p>display: none;</p>
<p>}</p>
<p>Add the above code in your theme css file.</p>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/cant-remove-demo-store-notice/</guid>
                    </item>
							        </channel>
        </rss>
		