• I’m trying to hook into the actions listed (dm_handle_actions_add, dm_handle_actions_primary etc.).

    I’ve browsed the svn history and it looks as though dm_handle_actions may have been used previously and is now replaced by dm_domains_admin … which appears to perform the same queries.
    The issue being that dm_domains_admin does not contain the do_actions that were present in the previous function.

    Am I correct in my findings or am I doing something unexpected?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    dm_handle_actions_add seems to persist

    
    $ grep -inR dm_handle_actions_add ./ | grep -v readme
    .//0.5.1/domain_mapping.php:157:				do_action('dm_handle_actions_add', $domain);
    .//0.5.2/domain_mapping.php:310:				do_action('dm_handle_actions_add', $domain);
    .//0.5.3/domain_mapping.php:330:				do_action('dm_handle_actions_add', $domain);
    .//0.5.4/domain_mapping.php:358:				do_action('dm_handle_actions_add', $domain);
    .//0.5.4.1/domain_mapping.php:357:				do_action('dm_handle_actions_add', $domain);
    .//0.5.4.2/domain_mapping.php:360:				do_action('dm_handle_actions_add', $domain);
    .//0.5.4.3/domain_mapping.php:349:				do_action('dm_handle_actions_add', $domain);
    .//0.5.5/domain_mapping.php:383:				do_action('dm_handle_actions_add', $domain);
    .//0.5.5.1/domain_mapping.php:349:				do_action('dm_handle_actions_add', $domain);
    
    • This reply was modified 8 years, 7 months ago by Ron Rennick.
    Thread Starter parmar84

    (@parmar84)

    It is present, and contains the actions I wish to use.

    But whenever domains are mapped via the admin screen, the function dm_domains_admin is used… which appears to contain the same queries as dm_handle_actions_add.

    So while it is present, is it actually in use?

    Nothing is fired when I’m hooking into the actions in dm_handle_actions_add.

    • This reply was modified 8 years, 7 months ago by parmar84.
    Plugin Author Ron Rennick

    (@wpmuguru)

    The dm_handle_actions function is the handler for the user/site mapping admin screen (under Tools in site admin).

    Thread Starter parmar84

    (@parmar84)

    Aah ok.

    Is there any reason the do_actions in that function are not in dm_domains_admin?

    We manage all our domain mapping from network admin->settings->domains and could really do with some hooks here.

    Plugin Author Ron Rennick

    (@wpmuguru)

    In that case, you should look at using the core URL mapping feature & see what hooks are available with it.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘is dm_handle_actions obsolete?’ is closed to new replies.