Category : wordpress-plugin-creation

So, I’ve been pulling my hair out over this for longer than I’d care to admit. I am trying to create a bunch of checkboxes in profile.php and user-edit.php for a plugin that is populated by an array. For starters, this works: //<!– "HTML" –> function profile_fields($user) { //$user_id = $user->ID; <input type=’hidden’ name="user_id" value="<?php ..

Read more

So, I’ve been pulling my hair out over this for longer than I’d care to admit. I am trying to create a bunch of checkboxes in profile.php and user-edit.php for a plugin that is populated by an array. For starters, this works: //<!– "HTML" –> function profile_fields($user) { $user_id = $user->ID; <input type=’hidden’ name="user_id" value="<?php ..

Read more

There are issues I’m having with GravityForms in WordPress adding it’s script to each page, which looks like: <script type="text/javascript">if(!gform){document.addEventListener("gform_main_scripts_loaded",function(){gform.scriptsLoaded=!0}),window.addEventListener("DOMContentLoaded",function(){gform.domLoaded=!0}); etc. How can I make it so that this script doesn’t get added on certain pages, using PHP? (with another plugin, for example) I don’t want to edit GravityForms code as this would obviously break ..

Read more

So I’ve been pulling my hair out over this for longer than I’d care to admit. I am trying to create a bunch of checkboxes in profile.php and user-edit.php for a plugin that is populated by an array. For starters, this works: //<!– "HTML" –> function profile_fields($user) { $user_id = $user->ID; $meta_value = get_user_meta( $user->ID, ..

Read more