title: Override function (with hook) in wordpress
body: <p>I have this situation:</p>
  
  <p>parent theme:</p>
  
  <p>functions.php</p>
  
  <pre><code>require_once(dirname(__FILE__) . "/includes/theme-functions.php");
  require_once(dirname(__FILE__) . "/includes/theme-hooks.php"); 
  </code></pre>
  
  <p>theme-function.php</p>
  
  <pre><code>function name_of_this_function() {
      // DO SOMETHING
  }
  add_action ('hook','name_of_this_function');
  </code></pre>
  
  <p>theme-hooks.php</p>
  
  <pre><code>function hook() {
      do_action('hook');
  }
  </code></pre>
  
  <p>How can I override that action in my child functions.php given that mine is called before? I tried:</p>
  
  <pre><code>remove_action ('hook','name_of_this_function');
  </code></pre>
  
  <p>but of course this return false</p>