danielerocchi
Forum Replies Created
-
That’s great. But It could be better to redirect users to their buddypress profile after the login through the learnpress lo profile Page.
so what is the plus of using the Learnpress – BuddyPress integration plugin?
Forum: Plugins
In reply to: [Code Snippets] Codes work in functions.php but not in pluginI tried your tip, but It still doesn’t work! Any other suggestions?
Below the code:add_filter( ‘submit_job_form_fields’, ‘frontend_add_salary_field’ );
if(function_exists(‘frontend_add_salary_field’)){
function frontend_add_salary_field( $fields ) {
$fields[‘job’][‘job_salary’] = array(
‘label’ => __( ‘Salary ($)’, ‘job_manager’ ),
‘type’ => ‘text’,
‘required’ => true,
‘placeholder’ => ‘e.g. 20000’,
‘priority’ => 7
);
return $fields;
};
}Forum: Plugins
In reply to: [Code Snippets] Codes work in functions.php but not in pluginHi, i have the same problem with the code to add new fields in wp-job-manager job form. It should be very simplex. It works if used in function.php, but doesn’t work using code snippets. below code:
`add_filter( ‘submit_job_form_fields’, ‘frontend_add_salary_field’ );
function frontend_add_salary_field( $fields ) {
$fields[‘job’][‘job_salary’] = array(
‘label’ => __( ‘Salary ($)’, ‘job_manager’ ),
‘type’ => ‘text’,
‘required’ => true,
‘placeholder’ => ‘e.g. 20000’,
‘priority’ => 7
);
return $fields;
}Can you help me to understand what’s the matter? Thanks