Add Plugin options as subpage to Theme options page
Add Plugin options as subpage to Theme options page
Add Plugin options as subpage to Theme options page
Nextcloud integration with wordpress
CMB2 toolkit: Compare 2 Dates and validate the Time
For logged in users, use: wp_ajax_{$action} For logged out users, use: wp_ajax_nopriv_{$action} Your code is currently using wp_ajax_{$action} -> wp_ajax_nizam_handler which will restrict the request to logged in (authenticated users). If you are logged out at the time of the request, you will never make it into your callback. If you want to target logged … Read more
The example in Settings API documentation uses admin_init and admin_menu for registering custom settings and admin pages. https://developer.wordpress.org/plugins/settings/custom-settings-page/ There’s also an old Codex entry on actions typically run on front and back end requests, which can help pick a suitable action hook. https://codex.wordpress.org/Plugin_API/Action_Reference I also highly recommend the excellent old Q&A about instantiating classes in … Read more
Custom rewrite rules not working with WPML
It’s an OK practice but in some cases could be turned to a worst case scenario! Using shortcodes to generate blocks of HTML is the reason they exist, especially when you need some dynamic HTML generation (using attributes in the shortcode). In conclusion, a normal shortcode usage is totally OK, however you should avoid putting … Read more
This is serious problem with WordPress and composer. Whatever you do, you are just asking for future problems and/or making life hard for your plugin users. Guess what – even if you manage to load correct version of framework for all your plugins, WP user may unknowingly install some other plugin, which also uses the … Read more
LinkedIn Social Wall | Is there a plug-in (Free / Paid) to display a LinkedIn feed in a social wall (not just a feed)?
Couple of things to try – remove some of the curly braces { } because those are only needed when you’re referring to variables, and try just directly calling onChange: <div className={‘caption’}> <RichText tagName=”p” className=”imgCtaContent” onChange={ ( content ) => { setAttributes( { content } ) } } value={content} placeholder=”Enter text…” /> </div> Also in … Read more