moodle with wordpress

moodle with wordpress

Ashish Jain -
Atsakymų skaičius: 2

I'm integrating wordpress with moodle. Is it possible to fetch course image in wordpress. I'm able to get course details in wordpress using sql queries, but got stuck in fetching images. Can somebody please help me with it.

Įvertinimų vidurkis: -
Atsakymas į Ashish Jain

Re: moodle with wordpress

Ajeet Kumar -

Hi Ashish,

You can use following code

global $CFG, $DB;

$context = context_course::instance($course->id);
$summary = file_rewrite_pluginfile_urls($mycoursesum->summary, 'pluginfile.php', $context->id, 'course', 'summary', null);

echo $summary;