<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wordpress contextual help Archives - Postnidea</title>
	<atom:link href="https://www.postnidea.com/category/wordpress-contextual-help/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.postnidea.com/category/wordpress-contextual-help/</link>
	<description>Programming Blog, Tutorials, jQuery, Ajax, PHP, MySQL and Demos</description>
	<lastBuildDate>Wed, 04 Sep 2019 05:10:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.8</generator>

<image>
	<url>https://www.postnidea.com/wp-content/uploads/2019/08/favicon.ico</url>
	<title>wordpress contextual help Archives - Postnidea</title>
	<link>https://www.postnidea.com/category/wordpress-contextual-help/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>wordpress posts validation using ajax in backend</title>
		<link>https://www.postnidea.com/wordpress-posts-validation-using-ajax-in-backend/</link>
					<comments>https://www.postnidea.com/wordpress-posts-validation-using-ajax-in-backend/#respond</comments>
		
		<dc:creator><![CDATA[Rakesh Kumar]]></dc:creator>
		<pubDate>Tue, 01 Aug 2017 02:57:00 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress contextual help]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[ajax validation]]></category>
		<category><![CDATA[post ajax validation]]></category>
		<category><![CDATA[wordpess post validation]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>In WordPress already so many hooks &#38; filter available with the help of that you can customize the wordpress according [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/wordpress-posts-validation-using-ajax-in-backend/">wordpress posts validation using ajax in backend</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div dir="ltr" style="text-align: left;">
<p>In WordPress already so many hooks &amp; filter available with the help of that you can customize the wordpress according to our needs. But there are some customizations that are required more tricky solutions. For handling ajax request WordPress already define our rules &amp; standards but sometimes there is a need to performing ajax request on the default page saving. For the javascript WordPress uses js enqueue<br />
function with the help of you can attach javascript files &amp; functions. For creating ajax request action WordPress uses two below functions</p>
<p>When you calling the actions publically the use the below functions. There is no need requirement of the login.<br />
admin_post_nopriv_{action_name}<br />
If you want action to execute only when the user login.<br />
admin_post_{action_name}</p>
<p>If you want to call an action on login or without login then use both functions. Now I show you how to call the action in our Ajax request.<br />
http://your_host/admin-ajax.php<br />
On above URL you can pass the action: name using a post or get request then execution of the action occurs. But some problem comes due to customization then there is a need a tricky solution. You can see the below problem.</p>
<p>Problem:</p>
<p>We need to add some extra fields (custom fields) on WordPress backend page. When a user clicks on &#8220;publish&#8221; button then we call the API &amp; values fill with the response from the API then we submit WordPress page form. We implemented all but page always goes to Draft.</p>
<p>Solution:<br />
In a below code post status select box I have check if there is user select &#8220;Draft&#8221; I set the draft otherwise we put the status the publish so that we have to fix that problem. The above-explained things done by function &#8220;check_status&#8221;.</p>
<pre><code>
$("#publish:button").click(function(){
	$.get("url").done(function(data){
		if(check_status()){} else{
		$("#acf-field-region").after("");
		}

		$(document).find("#publish").prop("type", "submit");
		setTimeout(function(){

		$("#post").submit();

		},100);

		return false;
	})
	event.preventDefault();
});
</code></pre>
<pre><code>
function check_status(){
	var status=0;
	jQuery("#post_status option").each(function(){
		if(jQuery(this).val()=="publish"){
			status=1;
		}
	});
	return status;
}
</code></pre>
</div>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/wordpress-posts-validation-using-ajax-in-backend/">wordpress posts validation using ajax in backend</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.postnidea.com/wordpress-posts-validation-using-ajax-in-backend/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Product documentation : with use of wordpress contextual help</title>
		<link>https://www.postnidea.com/product-documentation-with-use-of-wordpress-contextual-help/</link>
					<comments>https://www.postnidea.com/product-documentation-with-use-of-wordpress-contextual-help/#respond</comments>
		
		<dc:creator><![CDATA[Rakesh Kumar]]></dc:creator>
		<pubDate>Sun, 12 Feb 2017 16:51:00 +0000</pubDate>
				<category><![CDATA[Branding]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[product documentation]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress contextual help]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[Plugin development]]></category>
		<category><![CDATA[WordPress contextual help]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>For any product, document ion is very important. When you develop a product then only you know how its work [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/product-documentation-with-use-of-wordpress-contextual-help/">Product documentation : with use of wordpress contextual help</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div dir="ltr" style="text-align: left;">
<p>For any product, document ion is very important. When you develop a product then only you know how its work &amp; how to use. But if someone new person tries to use then he can&#8217;t use it so, in that case, your product useless for the user. So whenever you develop any product there is need to create a proper documentation. The documentation should cover below points.</p>
<h2>About product</h2>
<p>In this section describe our product completely like &#8220;about product&#8221;, &#8220;Why you made it&#8221;. If you develop something new product then there is no need to a comparison. If some product already exists then there is a need for comparison so that user can compare it. If a user uses an already product and your product have something new and better than user remve/uninstall our product &amp; try your, In that situation, if your product works better than user always use your product if he fails then he use our existing product. So there more important to include about a product, advantage, disadvantage last but not least comparison.</p>
<h2>How to use it</h2>
<p>It&#8217;s very important section so it&#8217;s documented very carefully. There is need to clarify more clearly so that user can easily understand. There is a need for more graphics &amp; text so that user have a clear idea. If your product is digital then nowadays different platforms like youtube, SlideShare, GitHub can help you. This platform provide you an area in which you show graphics, picture &amp; animation so that product user can easily understand &amp; use it.</p>
<h2>Reviews</h2>
<p>In this section provide the way (review submit form, toll-free number, or any number) through which user can provide the reviews. With the help of reviews, you can improve your product. Because mistakes make perfect so it&#8217;s more important.</p>
<p>I review many plugins of WordPress the author writes very good &amp; usable plugins but they fail only the documentation. Now WordPress provide a help section on top of the screen so take help of that you can provide help text &amp; animation on each page.</p>
<p>start with creating simple, so I write code for creating a plugin which is below</p>
<p>Now the plugin is created but only its shows in the plugin list now there is a need to links on sidebar menu so that user can move on the pages by clicking on that. Now below code add two menus in admin sidebar menu. The below menu also connected with function my_magic_function &amp; my_magic_function1.</p>
<p>Now Menu appears in the sidebar now on click on menu need to redirect on the page now I write a below code which creates the page on which user can redirect.</p>
<p>Now everything gone fine now the small plugin is ready but there is scanty of documentation now below code add the help text in above screen.</p>
<p>Now when you install this plugin in our wordpress set up then you can see the demo. I also attached the youtube video on which you also see the demo.</p>
<p><iframe src="https://www.youtube.com/embed/XFqWsHGMmJg?rel=0&amp;showinfo=0" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p>You can also browse the complete code by click on next button<br />
<a class="btn btn-primary btn-blue" href="https://github.com/postnidea/wordpress-Contextual-Help" target="_blank" rel="noopener noreferrer">code</a></p>
</div>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/product-documentation-with-use-of-wordpress-contextual-help/">Product documentation : with use of wordpress contextual help</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.postnidea.com/product-documentation-with-use-of-wordpress-contextual-help/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
