Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do you change the “order” in which plugin fields are displayed in members header file


  • maddogmcewan
    Participant

    @maddogmcewan

    Might be a silly question… How do you change the order that plugins hook into the members header file (single) to display things like “active 3 minutes ago” and “verified member” (BP Verified) and profile progression” and Rank, and QA Rep etc… It seems there is no way to set the order that some plugins add content to your members header file

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

  • modemlooper
    Moderator

    @modemlooper

    From the WP codex:

    `Hook to WordPress
    After your function is defined, the next step is to “hook” or register it with WordPress. To do this, call add_action() in the global execution space of your plugin file:

    add_action ( ‘hook_name’, ‘your_function_name’, [priority], [accepted_args] );
    where:

    hook_name
    The name of an action hook provided by WordPress, that tells what event your function should be associated with.
    your_function_name
    The name of the function that you want to be executed following the event specified by hook_name. This can be a standard php function, a function present in the WordPress core, or a function defined by you in the plugin file (such as ’email_friends’ defined above).
    priority
    An optional integer argument that can be used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
    accepted_args
    An optional integer argument defining how many arguments your function can accept (default 1), useful because some hooks can pass more than one argument to your function. This parameter is new in release 1.5.1.`

    You would need to change the priority


    maddogmcewan
    Participant

    @maddogmcewan

    @modemlooper thank you indeed… and by the by … great respect, you are truly a guru for many of us ! keep looping !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you change the “order” in which plugin fields are displayed in members header file’ is closed to new replies.
Skip to toolbar