0
votes
1answer
36 views

Plugin and theme script load order

I'm building a plugin that adds scripts to the page using wp_register_script and wp_enqueue_script. However, when the page loads, it's loading the plugin scripts before the theme's scripts. This is ...
0
votes
0answers
33 views

How to add a profile pic and biographical info at registration page?

I am running a multi-author blog which is also open to new authors registrations. How is it possible that new authors are forced to include the following information to the registration page ...
-3
votes
1answer
80 views

Trying to use wp_register_script/style and enqueu them from an array - getting an error [duplicate]

here is what i got so far: // my array $this->headersArray = array( array('handle' => 'buy_mobile_funcs', 'src' => 'jsFunctions', 'extention' => 'js', 'deps' => '', 'media' => ...
0
votes
1answer
465 views

plugins_url function mixes system path and URL

In my WordPress widget I use the following code: wp_register_script('jquery-ui.widget', plugins_url('assets/js/jquery-ui-1.9.2.widget.js', dirname( __FILE__ ))); Unfortunately, the code gives me an ...
1
vote
2answers
28 views

Is it possible to add an action to the currently running action?

My question is very simple but I haven't found this answer yet. Here's an example: class MyClass { public function __construct(){ add_action('init', array($this, 'init')); ...
1
vote
1answer
1k views

WP deregister, register and enqueue dequeue

a plugin that I bought is loading a few js and css files on all pages, so I wanted to write a new function to deregister the handles, and enqueu them where I wanted. however I am not sure If I have to ...
0
votes
1answer
468 views

Register google jquery gets overwritten by plugin

I'm currently using a plugin, which includes jquery version 1.6.4 like this: function thethe_image_slider_head_scripts(){ wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ...